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

eeprom erased on power-up

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



Joined: 27 Dec 2012
Posts: 1

View user's profile Send private message

PostPosted: Thu Dec 27, 2012 12:27 am     Reply with quote

I am using PIC18F1320 and I write data to data eeprom (internal-256bytes) to store a fix 4bytes data.

My problem really is that when I turn-off the power and on it again... the data in the eeprom is erased or contains 0000.

Any help please...

Thanx
_________________
rahul
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Dec 27, 2012 6:27 am     Reply with quote

Hi,

Why on earth did you tack this (totally unrelated) question onto a 9 year old thread??

+++++++++++++
Fixed - made a new thread.

-Forum Moderator
+++++++++++++


Please post a complete and compilable test program that shows the problem.
We want to see how you are configuring the PIC, especially the Fuses. Please
also tell us your compiler version.

Please also tell us how the PIC is being powered, ie. what is the power supply?
Describe your circuit!

John
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 27, 2012 6:50 am     Reply with quote

and please...tell us this is REAL hardware and NOT a 'simulation'...!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 27, 2012 3:22 pm     Reply with quote

Data EEPROM won't survive a software reset:
http://www.ccsinfo.com/forum/viewtopic.php?t=26937

After discharge and charge of source, EEPROM appears erased:
http://www.ccsinfo.com/forum/viewtopic.php?t=49339

This thread has several more links on data eeprom corruption:
http://www.ccsinfo.com/forum/viewtopic.php?t=37757
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