Shop OBEX P1 Docs P2 Docs Learn Events
Clearing Eeprom on protoboard? — Parallax Forums

Clearing Eeprom on protoboard?

Carl LawhonCarl Lawhon Posts: 36
edited 2009-03-08 03:07 in Propeller 1
Here's my problem:

Earlier today I loaded a large program to the 64kb eeprom memory on my protoboard. Right now I am trying to load a significantly smaller program to the eeprom. Whenever I load the program, however, random bits of the first program run while the new program is running. Alternatively, sometimes the new program runs improperly. Can clearing the eeprom solve this problem? If so, how should I go about doing that?

Comments

  • mctriviamctrivia Posts: 3,772
    edited 2009-03-08 03:05
    the loader should clear the first 32KB EEPROM. Anything after that is not used generally by the propeller.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-08 03:07
    There is no need to clear the EEPROM. I don't know why you're seeing "odd behavior", but it's not that there's random bits of an "old program" running. When the Propeller Tool downloads a program to the Propeller, it initially gets downloaded to RAM and all RAM beyond the end of the program gets zeroed. When the program is written to EEPROM, the entire 32K of RAM is written to 1st 32K of the EEPROM, so anything previously in the 1st 32K of EEPROM is overwritten. The 2nd 32K is another story. It's not touched at all by the bootloader. Anything written there by your program will remain there until changed. You cannot download a program larger than 32K using the bootloader (and the Propeller Tool). If you program is very large (close to 32K in size), it may be running out of stack space. This extends from the end of the program to the end of RAM.
Sign In or Register to comment.