CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

"RESERVED MEMORY" on debug mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
eabir



Joined: 16 Aug 2010
Posts: 19

View user's profile Send private message

"RESERVED MEMORY" on debug mode
PostPosted: Thu Dec 29, 2011 1:41 am     Reply with quote

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: 19343

View user's profile Send private message

PostPosted: Thu Dec 29, 2011 2:31 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 29, 2011 4:05 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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