View previous topic :: View next topic |
Author |
Message |
eabir
Joined: 16 Aug 2010 Posts: 19
|
"RESERVED MEMORY" on debug mode |
Posted: Thu Dec 29, 2011 1:41 am |
|
|
Hello,
While debug the ccs code in MPLAB i got "RESERVED MEMORY" in the watch value area.
What is the general reason ? and how can i fix it?
It happens with PIC16F688 and PIC24H, i assume its general problem in memory definitions? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19538
|
|
Posted: Thu Dec 29, 2011 2:31 am |
|
|
You don't say where this is.
If you look in the data for the ICD, _all_ chips have some resources that are used by the ICD. Normally at least one interrupt level, a couple of stack levels, a few bytes of RAM, and a few hundred bytes of ROM at the top of the memory space. The amount varies (a little) between chips.
There also is 'reserved memory' in quite a few chips. So (for example) the USB data frame is directly updated by the USB hardware, and is reserved, on USB chips.
Best Wishes |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Thu Dec 29, 2011 4:05 am |
|
|
Reserved memory may be also ICD reserved, if you didn't compile with the ICD option in effect, or you are using #device ICD, but CCS C isn't aware of the actual ICD memory allocation. Check the MPLAB ICD related help file and reserve extra memory, if necessary. |
|
|
|