|
|
View previous topic :: View next topic |
Author |
Message |
rmozer
Joined: 06 Jun 2005 Posts: 17
|
Code at 0x1FCC4 is outside all functions ???? |
Posted: Sun Oct 09, 2005 4:03 pm |
|
|
Ever since going to version 2.234 (and on to 2.235) I have started seeing some strange things while trying to debug code on a 18F6722. I can't say for sure that it didn't exist before these compiler versions.
From time to time, while using the ICD-U40 my program stops and when you look at the stack in the debug window you see:
Code at 0x1fcc4 is outside all functions.
It doesn't seem to mater if I have the DEBUG fuse or the #DEVICE ICD=TRUE,CCSIC=TRUE directive or not.
Further, if I try to catch the code with an org statement:
#ORG 0x1fcc4, 0x1fd04
void MyErrorTrap(){
fputs("caught you");
}
I get an "INVALID ORG RANGE" when trying to compile. The highest code I can place in memory appears to be at byte 0x1fbff leaving the top 1K of memory in accessabile (probabaly used by CCS for something but the debugger won't show me whats there).
I guess all I can do is try to figure out where my code ran amuck ;)
Any insight by you code wizards? |
|
|
Ttelmah Guest
|
|
Posted: Mon Oct 10, 2005 2:26 am |
|
|
The debugger itself, puts a block of code in the top page of memory. The ICD=TRUE fuse, ought to determine whether the compiler will allow you to put anything else here (with it off, you should be able to place a routine here, but then the debugger won't work..).
How big is your code?. There can be problems when the program code grows too large to fit into the remaining memory area.
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|