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

Write to EEPROM
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
newguy



Joined: 24 Jun 2004
Posts: 1900

View user's profile Send private message

PostPosted: Sun Jul 16, 2017 9:15 am     Reply with quote

Ttelmah wrote:
...or an FRAM chip).


FRAMs can wear out too - I speak from experience. I think that the failures were partly due to being written so often and partly due to a fault with the memory itself. We changed to a different manufacturer and the problem went away.

MRAM is another option that is supposedly immune (or almost immune) to wearing out.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Sun Jul 16, 2017 2:46 pm     Reply with quote

Write_float_eeprom, uses write_eeprom.

Understand, write_eeprom, is the 'core' function provided by the compiler, to write one byte to the EEPROM. Any data type larger than a byte has to be transferred using multiple write_eeprom calls. The write_float_eeprom command uses four write_eeprom calls to transfer the float to the EEPROM (since a float is four bytes...).

Newguy, I'd say you had faulty FRAM's. Can happen.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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