|
Forum Index : Microcontroller and PC projects : var eeprom saving when reprogramming
| Author | Message | ||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3464 |
Is there a way to preserve the contents of the eeprom (VAR saved variables) when downloading a new program? The manual says "saved variables will be automatically cleared by the NEW command or when a new program is loaded." I often just want to make a small change in a program while preserving variable values saved in eeprom. Is there a way to do this? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
jman![]() Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Why not use the built in editor to make the small changes that way all VAR save variables will be intact Regards Jman |
||||
| CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171 |
bit more involved but it is easy to add a EEPROM or FRAM chip and then store your variables in that - safe from everything then. |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3464 |
Yes, I have eeprom on a ds3132 module, and can use that, but would have to write the functional equivalent of var save and var restore. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171 |
does this help? http://www.thebackshed.com/forum/forum_posts.asp?TID=6917 |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3464 |
Yes, I saw and noted that nice library. I was hoping for something like the PICAXE directive, "#no_data", which causes eeprom to be preserved when the program is re-flashed. Something like OPTION SAVE EEPROM PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |