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

ICD-U40 seems to erase internal EEPROM. Possible to avoid?

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



Joined: 23 Feb 2004
Posts: 51

View user's profile Send private message

ICD-U40 seems to erase internal EEPROM. Possible to avoid?
PostPosted: Wed May 18, 2005 2:27 pm     Reply with quote

Dear Friends,

I'm (back to) programming (after a long absence) an 18F8520 using the ICD-U40 dongle. Compiler is PCWH v3.224 and the dongle firmware is CCS v1.39 Rev #97.

I wanted to create a calibration procedure for an A/D and store the resulting cal factors in the internal "Data EEPROM." My s/w should start up, get its cal factors, then run. I wouldn't be changing these cal factors often; perhaps once a year.

I have had some success writing info to the EEPROM using the CCS function calls read_eeprom() and write_eeprom(), but I notice that every new version I download to the processor using the dongle wipes clean the 1024-byte EEPROM -- sets it entirely into 0xFF's.

That's no good! I can't be losing my cal factors every time I tweak the s/w. I need to store floating-point gains and offsets for 12 channels; it works out to be at least 96 bytes.

a) Does anyone know how to keep the dongle from erasing the EEPROM?

b) Or can anyone suggest a better place to store these constants? (and if so, provide a code example if possible?)

Thanks,

Smile Robert
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 18, 2005 2:38 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=21777&highlight=eeprom
RKnapp



Joined: 23 Feb 2004
Posts: 51

View user's profile Send private message

PostPosted: Wed May 18, 2005 5:03 pm     Reply with quote

That worked PERFECTLY -- setting to "Erase as Needed".

Thank you very, very much,

Smile Robert
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