Author |
Message |
Topic: Out of ROM - Segment or program is too large |
Bill24
Replies: 7
Views: 10561
|
Forum: General CCS C Discussion Posted: Fri Dec 14, 2012 8:59 am Subject: Out of ROM - Segment or program is too large |
Search for your error.
"Segment or program is too large"
Found it
Thanks |
Topic: Out of ROM - Segment or program is too large |
Bill24
Replies: 7
Views: 10561
|
Forum: General CCS C Discussion Posted: Fri Dec 14, 2012 2:46 am Subject: Out of ROM - Segment or program is too large |
Hi,
This issue has been covered many, many times here. Learn to use the forum
Search function before posting your questions, as in many cases the solution
Is already at hand.....
Good Luck!
... |
Topic: Out of ROM - Segment or program is too large |
Bill24
Replies: 7
Views: 10561
|
Forum: General CCS C Discussion Posted: Wed Dec 12, 2012 9:39 am Subject: Out of ROM - Segment or program is too large |
Compiler 4.135 porting code from a PIC18F87K22 to a PIC18F66K22.
Everything went well and the code worked.
Code ROM used shown as 34% and RAM 12%-14%
But adding just a few lines of simple code ... |
Topic: RTCC stops Timer1 |
Bill24
Replies: 3
Views: 6416
|
Forum: General CCS C Discussion Posted: Wed Nov 28, 2012 7:45 am Subject: RTCC stops Timer1 |
The default RTC code assumes you want to use the T1 external oscillator...
The behaviour varies with compiler version. On older compilers you had to explicitly enable/start the secondary oscillator, ... |
Topic: Help ! 18f67k22 RTC |
Bill24
Replies: 56
Views: 65316
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2012 10:51 am Subject: Help ! 18f67k22 RTC |
Here is some code I have got working on a PICDEM PIC18 board with a PIC 18F87K22.
I recommend always start prototyping code with WORKING hardware that use the same device as you intend to use in ... |
Topic: RTCC stops Timer1 |
Bill24
Replies: 3
Views: 6416
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2012 5:49 am Subject: RTCC stops Timer1 |
Hi
I am using a PIC18F87K22 and CCS 4.135
My timer1 interrupt routine works unless the RTCC is setup. However I wish to use both.
In my initalize routine I have
// Tick Timer
... |
Topic: PIC24F bootloader + AN1157 |
Bill24
Replies: 3
Views: 10889
|
Forum: General CCS C Discussion Posted: Tue Nov 27, 2012 4:01 am Subject: PIC24F bootloader + AN1157 |
The erase_program_memory() section in loader_pcd.c is required. Memory will be erased prior to loading the bootloader code using an ICD3, but then the boot loader writes to the flash. Then the next a ... |
Topic: Porting SPI Eeprom Driver from Microchip |
Bill24
Replies: 11
Views: 19565
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 6:10 am Subject: Porting SPI Eeprom Driver from Microchip |
#PIN_SELECT _is only used on peripherals that are re-mappable_. Your chip does not offer this on the SPI, so what on earth are you doing trying to use it?. Of course it won't work, the hardware is not ... |
Topic: Porting SPI Eeprom Driver from Microchip |
Bill24
Replies: 11
Views: 19565
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 4:56 am Subject: Porting SPI Eeprom Driver from Microchip |
Seriously, just use the CCS functions.....
However comments:
1) Use the CCS automatic register locating. Much less likely to go wrong.
So:
#word SPI1BUF = getenv("SSPBUF") // SP ... |
Topic: Porting SPI Eeprom Driver from Microchip |
Bill24
Replies: 11
Views: 19565
|
Forum: General CCS C Discussion Posted: Wed Nov 14, 2012 2:38 am Subject: Porting SPI Eeprom Driver from Microchip |
Hi
Which pins of the MCU are connected to the EEPROM's SS,SCK,DO and DI?
Are they the SPI hardware pins (except the SS which is a regular I/O pin)?
Do you actually "see" the data coming b ... |
Topic: Porting SPI Eeprom Driver from Microchip |
Bill24
Replies: 11
Views: 19565
|
Forum: General CCS C Discussion Posted: Tue Nov 13, 2012 4:08 pm Subject: Porting SPI Eeprom Driver from Microchip |
It'd really help us help you if you said which PIC you're using as well as compiler version, might as well say which eeprom too.....
The more information you supply the faster someone here can reply ... |
Topic: Porting SPI Eeprom Driver from Microchip |
Bill24
Replies: 11
Views: 19565
|
Forum: General CCS C Discussion Posted: Tue Nov 13, 2012 1:10 pm Subject: Porting SPI Eeprom Driver from Microchip |
I have been trying to port some code from a C18 compiler to read and write to an eeprom via SPI.
I can write data out and see the data and the clock on an oscilloscope. However I do not get data be ... |
Topic: Pic24F USB bootloader |
Bill24
Replies: 3
Views: 9821
|
Forum: General CCS C Discussion Posted: Wed Nov 07, 2012 8:42 am Subject: Pic24F USB bootloader |
I've seen in your code that you are mapping 2 UARTs:
#define IRDA_RCV PIN_D14
#define IRDA_XMIT PIN_D15
#define TEST_RCV PIN_D12
#define TEST_XMIT PIN_D8
// Maps UART1 ... |
Topic: MCP23S17 interfacing with SPI with controller PIC18F8722 |
Bill24
Replies: 22
Views: 53839
|
Forum: General CCS C Discussion Posted: Wed Nov 07, 2012 6:32 am Subject: MCP23S17 interfacing with SPI with controller PIC18F8722 |
Thanks for posting the driver.
Could you also post it in the Code Library forum? There it will be easier for people to find.
BTW: do you know why there are functions i_write and initWrite ? Apart ... |
Topic: Pic24F USB bootloader |
Bill24
Replies: 3
Views: 9821
|
Forum: General CCS C Discussion Posted: Wed Nov 07, 2012 6:14 am Subject: Re: Pic24F USB bootloader |
I'm not sure if this has been answered before but I couldn't find a topic about this question. I'm working with a PIC24FJ128GB106 and I need to program a USB bootloader for it.
Does anyone have a va ... |
|