Point Me to "Clear EEPROM" program
I understand there is a clear EEPROM program, but I can't find it.
Or maybe, just press F11 with a blank program??
Suggestions?
Larry Cardo
Mentor, OH
Or maybe, just press F11 with a blank program??
Suggestions?
Larry Cardo
Mentor, OH

Comments
pub main
and then just press the F11 button...
My hair is gray.
I am brand new to the Prop. I have also wondered how to "clear" EEPROM. (A servo cranking up when all I wanted to do is blink an LED might be surprising!)
Thanks!
--Bill
Otherwise, maybe someone has a simple program to clear it. It is not difficult - look for a spin I2C eeprom object.
Here is a method I use to erase the entire EEPROM: It uses the Basic or PASM I2C objects.
With the Basic I2C object, it takes 20 seconds or so to execute. Using the PASM I2C object, it is about five times faster.
PRI _errase | i, empty[16] '' errase EEPROM memory longfill(@empty, -1, 16) REPEAT i FROM $0 TO $7FFF STEP 64 write(i, @empty, 64) PUB write (addr, valueAddr, size) | time '' write page to EEPROM with watchdog IF i2c.WritePage(BootPin, EEPROM, addr, valueAddr, size) RETURN false time := cnt repeat while i2c.WriteWait(BootPin, EEPROM, addr) ' wait for watchdog if cnt - time > clkfreq / 10 RETURN false RETURN true