Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Eram questions

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
CBailey

Bascom Member



Joined: 07 May 2015
Posts: 108

blank.gif
PostPosted: Thu Mar 07, 2024 4:46 pm    Post subject: Eram questions Reply with quote

I'm writing a program that will save settings to Eram. I'm expecting future versions will have more variables saved to Eram. Do I need to do anything special to add variables without messing up current variables? Are they stored in Eram based on the order they are dimensioned? By variable name? Something else?

(BASCOM-AVR version : 2.0.8.6 )
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2262

blank.gif
PostPosted: Thu Mar 07, 2024 5:32 pm    Post subject: Reply with quote

They are stored in order. If you want to keep EEProm mapping, you need to add new ERam-variables to the end.
Be careful not to write in a loop, as this finally would kill the EEProm cells, also set the EESAVE fuse in your unnamed controller to protect your data through the erase cycle before programming.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum