Shop OBEX P1 Docs P2 Docs Learn Events
saving parameters in eeprom ? — Parallax Forums

saving parameters in eeprom ?

Don PomplunDon Pomplun Posts: 116
edited 2011-08-05 17:32 in Propeller 1
I want the user to be able to save some runtime-generated servo position parameters so they come back after a restart. Since there is plenty of room in the Prop's existing external eeprom, it seems hat there ought to be a way to do that. The problem is that if I reload the spin code into eeprom, it wipes out that data. Some googling has turned up seeming possibilities with parallax serial terminal. I read some implication that I should be able to read dat values copied into the code from the eeprom and affix them into my updated code so that they load intact into the new program.There just seem to be some missing ends.
Looking at the PST methods, there doesn't seem to be anything that helps.
Plus looking at the object info window, the ram usage numbers don't seem to add up, whether I treat them as decimal or hex.
If this is at all clear, maybe someone can steer me to a known solution.
TIA
Don

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-08-05 15:43
    If you want data to survive loading a new program into EEPROM, you need EEPROM larger than 32K. Just save the data to location $8000 or higher.

    Do you need help saving to upper EEPROM?

    Duane
  • agimuhingagimuhing Posts: 39
    edited 2011-08-05 17:32
    Look in the obex for various eeprom drivers

    here's one I found that was made for storing variables in the event of a power loss http://obex.parallax.com/objects/765/
    looks like it could be easily modified for whatever you're doing
Sign In or Register to comment.