|
|
View previous topic :: View next topic |
Author |
Message |
Guest
|
0x37AE halts |
Posted: Mon Apr 19, 2004 11:26 pm |
|
|
Friends,
Here's a uber-weird one: whatever instruction winds up at address 0x37AE of my .lst file, and I mean ANY kind of instruction, halts the processor. Just commenting out different lines makes different instructions wind up at this location, and it's the end of the line. Even the watchdog won't reboot it!
Does anyone have any idea what's up with this? If the code download "verifies" okay... then is this some kind of new weird boundary?
I haven't investigated this very fully... but when I saw that this was what was happening, I am pretty confused... and can only think of a hardware failure or witchcraft...
Thanks,
Robert
ps. PIC18F8720, CCS v3.187 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Apr 20, 2004 1:08 am |
|
|
I wonder if you have the ICD2 set so it only programs up to a
certain address, but your code actually extends beyond that point ?
To find this setup screen, go to the Programmer menu in MPLAB
(assuming MPLAB 6.xx ) and click on Settings. Then click on
the Program tab. See if it's set to "Manually select memories
and ranges". If so, then put it back in the mode that lets the
ICD2 select them.
If you're using ICD2 in debugger mode, then the Debugger
menu also has a similar screen. |
|
|
Ttelmah Guest
|
|
Posted: Tue Apr 20, 2004 5:05 am |
|
|
PCM programmer wrote: | I wonder if you have the ICD2 set so it only programs up to a
certain address, but your code actually extends beyond that point ?
To find this setup screen, go to the Programmer menu in MPLAB
(assuming MPLAB 6.xx ) and click on Settings. Then click on
the Program tab. See if it's set to "Manually select memories
and ranges". If so, then put it back in the mode that lets the
ICD2 select them.
If you're using ICD2 in debugger mode, then the Debugger
menu also has a similar screen. |
The ICD, needs this space.
If you read the manual (...), it says:
"A small 'debug executive' program is loaded into the high area of program memory on the target PICmicro MCU. Since the debug executive must reside in program memory, the application program must not use this reserved space. The debug executive typically needs about 0x120 words of program memory."
The space needed is more than this on chips like the 18Fxx2.
You can still use the ICD2, as a programmer (dsable debug mode in the compiler fuses), but if the debugger is enabled, this program is there, and overwritting the area will cause very odd crashes...
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
|