Shop OBEX P1 Docs P2 Docs Learn Events
BS1 - upload a PBASIC program, need help — Parallax Forums

BS1 - upload a PBASIC program, need help

sky_partesky_parte Posts: 2
edited 2008-11-06 18:12 in BASIC Stamp
Hello,

How can i upload a PBASIC program from a BS1 and program it in a new BS1?


FAQ:
Can I read-out, or upload, the PBASIC program which is already stored in the BASIC Stamp?
No. For security reasons, this feature was not made available. It is possible to read the tokenized form of the
PBASIC code out of the BASIC Stamp’s EEPROM, but there is no easy way to “reassemble” it into usable source code.


Thanks,
sky_parte


Post Edited (sky_parte) : 9/30/2008 3:36:31 PM GMT

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-09-30 17:24
    Hello,

    There is no way to recover code from an existing BS1 to download it into another. You must have the original source code. The only real way you could do this would be to remove the EEPROM from the BS1 and copy it in a device programmer. Problems is, you may damage the EEPROM removing it and lose the current code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-30 17:26
    Realistically, you can't. The READ statement can read the contents of the EEPROM, one byte at a time and you need to have a short program in the Stamp that will read the rest of the EEPROM and transmit it somewhere else, but this program takes up part of the EEPROM overwriting whatever was there initially.

    If you have the right kind of test equipment, you can make electrical contact with the connections to the EEPROM on the BS1 module and use some kind of external equipment to read from the EEPROM. It's not trivial. As Chris indicated, you can easily destroy the EEPROM in the process.
  • sky_partesky_parte Posts: 2
    edited 2008-11-06 17:35
    Hy again, and tanks for your support.

    Now i have a BS1-IC (Rev. B),·with a 93LC66A EEPROM and a device programmer with a SOIC adapter.

    Can i·read the code from·the 96LC56 EEPROM in BS1-IC (Rev. A) and program it into the·93LC66A EEPROM·using the device programmer?

    Is it possible to use the code copied from the·EEPROM and download it using the BS1 Serial Programming Adapter·and the BASIC Stamp Editor into the new BS1?

    What is the best way to achieve this?

    Thanks,

    sky_parte

    Post Edited (sky_parte) : 11/6/2008 5:42:21 PM GMT
    480 x 347 - 71K
  • Mike GreenMike Green Posts: 23,101
    edited 2008-11-06 17:56
    You are on your own here.
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-11-06 18:12
    No, the Basic Stamp Editor will tokenize and download the tokens. If you already HAVE the tokens, the Basic Stamp Editor is not going to know what to do with them, as they're not valid PBasic source code.

    As Mike says, you're on your own in this case.
Sign In or Register to comment.