Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : var eeprom saving when reprogramming
Author | Message | ||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3015 |
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: 1985 |
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: 3015 |
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: 1985 |
does this help? http://www.thebackshed.com/forum/forum_posts.asp?TID=6917 |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3015 |
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 |
||||
Print this page |