Author |
Message |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Thu Aug 18, 2005 1:14 pm Subject: Crash when code size exceeds 32k |
Guess what?
I updated MPLAB from Ver 6.2 to Ver 7.0 and the problem vanished.
I guess this is why lots of other people weren't having this same problem.
Thank you all for your help, I'm going to ge ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Wed Aug 17, 2005 12:55 pm Subject: Crash when code size exceeds 32k |
I pretty much need all the interrupts I'm using, if I turn any off it won't work.
I've tried turning off the EMCU fuse. Kills external RAM access, but otherwise has no effect.
I'm still perusing the ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Tue Aug 16, 2005 5:16 pm Subject: debugger |
Debugger info
MPLAB ICD 2 Version 01.20.00.00
Firmware ICD2
Firmware Type 18F
Firmware Version 02.00.05.00
Bootloader Version 01.01.01.00
Debug Exec Version ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Tue Aug 16, 2005 4:20 pm Subject: NOP details |
Alright, I can single step it. With disassembly on interesting things can be seen.
I had been putting the NOPs at the beginning of main().
If I move the NOPs to the very end of main(), after the clo ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Mon Aug 15, 2005 6:45 pm Subject: Code size |
If I chop out code until it works,
then add NOPs ( delay_cycles(1) ) until it fails,
the largest file size that works says
ROM used: 32190 bytes (25%).
Not exactly 32768 for some reason.
Adding o ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Mon Aug 15, 2005 1:26 pm Subject: Crash when code size exceeds 32k |
No, running it slower (4MHz) didn't help.
I also tried another Motherboard to make sure it isn't just one bad chip, but it fails on the other card as well.
Anybody got any more suggestions? |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Fri Aug 12, 2005 5:42 pm Subject: Clock speed |
I'll try running it slower.
I have to get my hands on a slower oscillator. |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Fri Aug 12, 2005 11:03 am Subject: silicon revision |
When the IDC connects to the chip it says:
Target Device PIC18F8720 found, revision = 0x4
Does that make it an A3 or A4?
BTW, it's running at 25MHz. |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Thu Aug 11, 2005 6:26 pm Subject: optimization level |
Thanks for the tip, but I'm afraid it didn't help.
At least not with compiler Version 3.207
Here are my results:
no #opt 33130 bytes (25%) crash
#opt 0 42222 bytes (32%) not run at all
#opt ... |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Thu Aug 11, 2005 3:48 pm Subject: compiler version |
I should mention that I've compiled it on version 3.207 & 3.224. |
Topic: Crash when code size exceeds 32k |
raljones
Replies: 23
Views: 29575
|
Forum: General CCS C Discussion Posted: Thu Aug 11, 2005 3:11 pm Subject: Crash when code size exceeds 32k |
I'm using a 18F8720 devce, which has 128k of code space.
My code recently grew to bigger than 32k, 25%, and it quit running.
It still mostly runs, until it tries to execute code near the end of the ... |
|