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 CCS Technical Support

Resources used by ICD3 debugger

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



Joined: 02 Jun 2010
Posts: 74

View user's profile Send private message

Resources used by ICD3 debugger
PostPosted: Mon Apr 21, 2014 2:33 am     Reply with quote

Hi. I have been debugging my firmware using MPLAB ICD3. It had been working fine until the program memory usage became about 98%.

The program seems to work fine when downloaded and operated alone. However, the debugging interface doesn't seem to work and the target goes to reset state right after I press run button.

Is there resource requirement in Flash in order to use debugger?

thanks
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Apr 21, 2014 4:58 am     Reply with quote

Yes, when debugging there is a small client program installed in top of your Flash memory. How large this is depends on the type of programmer you use, the PIC model and the MPLAB version. For details see the help file for your debugger that got installed with MPLAB. I didn't install the ICD software so can't tell you where to look exactly but what I remember from a previous project you'll have to open the ICD help topic and then search for 'resources'.

A memory usage of 98% is big trouble and will cost you a lot of time (== money) to squeesh in new features and bug fixes.
As a general rule of thumb: when designing a new device, always release your first prototype with 50% free memory space. Future customer changes are going to fill the remainder.
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Mon Apr 21, 2014 7:10 am     Reply with quote

The 'help' in MPLAB for the debugger will tell you the resources needed. It varies with different chips. Typically a little RAM (few bytes), a couple of stack levels, and a few hundred bytes of ROM.
On most chips anything over perhaps 90% won't work.
Agreed with Ckielstra, a prototype reaching 98% usage, is a sure message that you need to switch to a bigger chip.
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