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

Preserve eeprom data while debugging?

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



Joined: 29 Jun 2007
Posts: 62
Location: Raleigh, NC

View user's profile Send private message Visit poster's website

Preserve eeprom data while debugging?
PostPosted: Wed Aug 08, 2007 3:24 am     Reply with quote

When using PCW and and the ICD-U40 to debug and program an 18F6722, is there a way to preserve data eeprom when programming? Particularly when debugging, I need my eeprom data to remain unchanged for each program fix/update.

Jim
ljbeng



Joined: 10 Feb 2004
Posts: 205

View user's profile Send private message

PostPosted: Wed Aug 08, 2007 7:04 am     Reply with quote

Run the ICD program. Click Advanced. Check under Erase Modes and Check the box "Erase When Needed"
soundscu



Joined: 29 Jun 2007
Posts: 62
Location: Raleigh, NC

View user's profile Send private message Visit poster's website

PostPosted: Wed Aug 08, 2007 8:21 am     Reply with quote

Thanks for the suggestion (which I've seen in other posts), but...

There is no "Erase When Needed" option that I can see. I've unchecked the Data EEPROM Erase and Burn checkbox. It remains unchecked when I return to the ICD program, but it has made no difference when debugging in PCW.

Data EE is still cleared to FFs whenever the debugger loads a new hex file to the ICD. There are no #ROM statements in my program.

Jim
Dan Clapp



Joined: 08 Jan 2008
Posts: 2

View user's profile Send private message

Data EEPROM erased when debugging via ICD-U40
PostPosted: Tue Jan 08, 2008 9:54 am     Reply with quote

I am debugging with the ICD-U40 and cannot get the data eeprom to maintain data after downloads via PCW. I tried setting values by running the ICD program by itself. It has a option to turn off Data EEProm erase. But evidently PCW is not using the same configuration.

Any suggestions?
Dan Clapp



Joined: 08 Jan 2008
Posts: 2

View user's profile Send private message

Disable Bulk Erase and Data EEPROM Erase
PostPosted: Tue Jan 08, 2008 3:27 pm     Reply with quote

Why can't this be in the manual?

I found the following on an old post in the hardware part of this forum:

If anyone else wants to know how to preserve the Data EEPROM on the
target chip, you have to click on "Advanced" in the ICD Control program
(invoked by clicking the little hammer and wrench icon in the Debug
Configure tab), then select "Erase when needed" under the Erase Modes
section. As long as the program file being downloaded doesn't contain
any Data EEPROM data, the Data EEPROM section of flash memory will
be preserved.

I will add that you need to both uncheck "bulk erase" and "Erase Data EEPROM". The system does not seem to remember the settings very well so check then before each debug session if the data in the EEPROM is critical...
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