View previous topic :: View next topic |
Author |
Message |
soundscu
Joined: 29 Jun 2007 Posts: 62 Location: Raleigh, NC
|
Preserve eeprom data while debugging? |
Posted: Wed Aug 08, 2007 3:24 am |
|
|
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
|
|
Posted: Wed Aug 08, 2007 7:04 am |
|
|
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
|
|
Posted: Wed Aug 08, 2007 8:21 am |
|
|
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
|
Data EEPROM erased when debugging via ICD-U40 |
Posted: Tue Jan 08, 2008 9:54 am |
|
|
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
|
Disable Bulk Erase and Data EEPROM Erase |
Posted: Tue Jan 08, 2008 3:27 pm |
|
|
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... |
|
|
|