Author |
Message |
Topic: Out of ROM error, but plenty of space left in the page? |
[email protected]
Replies: 15
Views: 24021
|
Forum: General CCS C Discussion Posted: Fri Apr 10, 2009 4:29 pm Subject: Out of ROM error, but plenty of space left in the page? |
Probably the latter (a bug).
Thanks for your efforts. I tried pretty much all of the same steps, but not the switch construct change. I tried the #SEPARATE, moving the code blocks, org'ing elsewh ... |
Topic: Out of ROM error, but plenty of space left in the page? |
[email protected]
Replies: 15
Views: 24021
|
Forum: General CCS C Discussion Posted: Fri Apr 10, 2009 8:40 am Subject: Out of ROM error, but plenty of space left in the page? |
If you add a default case, it compiles:
case S_DIN: //Next 16 bits come in
shift_left(&dataIn,1,SDA);
break;
default:
} ... |
Topic: Out of ROM error, but plenty of space left in the page? |
[email protected]
Replies: 15
Views: 24021
|
Forum: General CCS C Discussion Posted: Fri Apr 10, 2009 12:06 am Subject: Out of ROM error, but plenty of space left in the page? |
Post the smallest possible program that shows the problem, but that
also compiles with no errors. Then show in comments the line that
if added, causes the error.
You got it. BTW, if I use #int ... |
Topic: Out of ROM error, but plenty of space left in the page? |
[email protected]
Replies: 15
Views: 24021
|
Forum: General CCS C Discussion Posted: Thu Apr 09, 2009 11:03 pm Subject: Out of ROM error, but plenty of space left in the page? |
In addition to Ttelmah's comment about the size of main, please note that the PCM compiler tends to put functions that are called only once into the calling function to save on call stack's limited sp ... |
Topic: Out of ROM error, but plenty of space left in the page? |
[email protected]
Replies: 15
Views: 24021
|
Forum: General CCS C Discussion Posted: Thu Apr 09, 2009 12:24 am Subject: Out of ROM error, but plenty of space left in the page? |
I have a program I'm writing where I have my ISR defined as an #int_global so that I can make it leaner than CCS typically does. I've found that I get the "Out of ROM" error as soon as this ... |
Topic: Problems with the 16F628 USART |
[email protected]
Replies: 4
Views: 10862
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2006 10:14 am Subject: Problems with the 16F628 USART |
According to the 16F628 data sheet, in Table 17-4, Parameter 4,
it says the nominal 4 MHz internal RC oscillator can vary from
3.65 to 4.28 MHz. That's at least 7 or 8% off. That's beyond
the 3 ... |
Topic: disassembly listing is blank when I do this... |
[email protected]
Replies: 7
Views: 15525
|
Forum: General CCS C Discussion Posted: Wed Feb 22, 2006 11:48 am Subject: disassembly listing is blank when I do this... |
While correcting some FUBARs in my ISR code noted by our astute crowd here, I found something interesting. My disassembly window goes blank when I add a couple of assembler instructions. The followi ... |
Topic: int_global ISR not working for INT0 interrupts |
[email protected]
Replies: 6
Views: 12705
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2006 3:10 pm Subject: int_global ISR not working for INT0 interrupts |
All,
One goof I made in the subject line: I said INT0 IRQ, I meant CCP1 IRQ.
oops,
DLC |
Topic: int_global ISR not working for INT0 interrupts |
[email protected]
Replies: 6
Views: 12705
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2006 3:09 pm Subject: int_global ISR not working for INT0 interrupts |
One thing leaps out.
When writing an int_global, it is _your_ responsibility to save every register that is used in the interrupt. Now your interrupt routine, is using an array access, so will be usi ... |
Topic: Problems with the 16F628 USART |
[email protected]
Replies: 4
Views: 10862
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2006 1:15 pm Subject: Problems with the 16F628 USART |
Hi all,
I've set up the USART of my program with a 4MHz internal OSC to run 9600 bps which is supported according to the PIC data sheet. However, the data sent is being corrupted. I use TeraTer ... |
Topic: int_global ISR not working for INT0 interrupts |
[email protected]
Replies: 6
Views: 12705
|
Forum: General CCS C Discussion Posted: Tue Feb 21, 2006 1:10 pm Subject: int_global ISR not working for INT0 interrupts |
Hi all,
I'm trying to interrupt on receiving IR transmissions on the negative edge. I've set all I need and CCP1 to measure the pulses, I've set up the ISR and done the #int_global setup based o ... |
Topic: PCH #int_global just not doing what it should, why? |
[email protected]
Replies: 4
Views: 8098
|
Forum: General CCS C Discussion Posted: Sat Feb 12, 2005 11:13 pm Subject: PCH #int_global just not doing what it should, why? |
Hi all,
Once again I find myself fighting with the interrupts. I wish
to make a fast ISR for an 18F252, so I'm using #int_global.
I've written the code and when it compiles I get this error:
... |
Topic: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
[email protected]
Replies: 8
Views: 17151
|
Forum: General CCS C Discussion Posted: Thu Sep 09, 2004 9:53 pm Subject: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
statements but
they are not working. Have you accidently checked the
box for "Disable HTML in this post" ?
I can't believe I made such a noob mistake. I must now hide my head
in sh ... |
Topic: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
[email protected]
Replies: 8
Views: 17151
|
Forum: General CCS C Discussion Posted: Thu Sep 09, 2004 9:31 pm Subject: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
Here's the answers and what I'm doing. The weird thing is that I've
used this compiler and this chip with ADC on another project and it
worked fine. This doesn't work at all, about the only thing ... |
Topic: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
[email protected]
Replies: 8
Views: 17151
|
Forum: General CCS C Discussion Posted: Thu Sep 09, 2004 2:31 pm Subject: use_fast_io didn't work, PWM didn't work A2D didn't work 16F |
3.180 is my version.
DLC |
|