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

write program eeprom 18f252

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



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

write program eeprom 18f252
PostPosted: Tue Nov 23, 2004 6:26 am     Reply with quote

Hi,
I am trying to write some dynamic data to program eeprom. The first time the code calls for this after programming, it works as intended. any subsequent calls write garbage into the memory. I'm wondering if the programming clears some control bit that does not get cleared after the first write is performed. the 252 data sheet is pretty clear on the process to write and read from program memory. The CCS data concerning this function is not very in depth.

Any help would be greatly appreciated
ckielstra



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

View user's profile Send private message

PostPosted: Tue Nov 23, 2004 6:57 am     Reply with quote

So, what do you want us to do? You don't give us a lot to work with...

What compiler version are you using? There was a bug in some recent versions.

Post a small program that shows your problem.
eaton



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 23, 2004 1:04 pm     Reply with quote

the obvious problems are always the hardest. A block erase is required before write_program_eeprom() will successfully write into program memory.
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