Shop OBEX P1 Docs P2 Docs Learn Events
spin stamp eeprom — Parallax Forums

spin stamp eeprom

Peter VerkaikPeter Verkaik Posts: 3,956
edited 2007-12-16 16:33 in Propeller 1
Is there a way to determine what area of the spin stamp eeprom is unused (unoccupied by program)?

Is the entire eeprom overwritten with each new download of a program to eeprom, or are just
the program bytes downloaded so written data by the application can be retained?

regards·peter

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-16 16:33
    peter,
    The 32K boot area is always overwritten on a download. Any remaining EEPROM is completely untouched by the download.

    The memory map in the Propeller Tool will tell you what's unused, but you can also check the word at location 8 which contains
    the number of bytes downloaded (rounded up to the nearest 4 byte boundary). EEPROM beyond that point is cleared to zero to
    the end of the 32K boot area.

    In order to preserve data in the EEPROM through downloads, it must be stored above the 1st 32K bytes.
Sign In or Register to comment.