Shop OBEX P1 Docs P2 Docs Learn Events
Clear EEPROM — Parallax Forums

Clear EEPROM

tfiegenbtfiegenb Posts: 12
edited 2013-12-22 19:14 in Learn with BlocklyProp
In SimpleIDE, how do I clear the contents of the EEPROM

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-22 18:26
    There's not a need to clear EEPROM. Whatever is written to EEPROM next will overwrite the old contents.

    It's certainly possible to clear the EEPROM by writing all ones or all zero to it but it doesn't serve a useful purpose to do so. I'm pretty sure SimpleIDE doesn't include a "clear EEPROM" feature.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-12-22 18:26
    You don't. There's normally no reason to do so. When you load a new program into the EEPROM, it entirely replaces the 32K (or first 32K if larger) of the EEPROM. The EEPROM loader doesn't touch any EEPROM beyond 32K unless you're using one of the compile modes that specifically uses more than 32K.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-12-22 18:43
    If, for example, your objective is to annul a previously-uploaded program because of some activity it causes on the Prop's pins, just upload the following program:
    PUB start
    

    That's it; nothing more is required.

    -Phil
  • tfiegenbtfiegenb Posts: 12
    edited 2013-12-22 18:55
    Thanks for the quick response. I'm new to Simple IDE
  • tfiegenbtfiegenb Posts: 12
    edited 2013-12-22 18:59
    Thanks Mike
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-12-22 19:14
    'Missed the SimpleIDE part; sorry!

    -Phil
Sign In or Register to comment.