Shop OBEX P1 Docs P2 Docs Learn Events
Load new program from USB — Parallax Forums

Load new program from USB

PaulFPaulF Posts: 62
edited 2008-08-22 16:56 in Propeller 1
Hi all,
I have developed an app that uses a VDrive2 to read data from a USB thumb drive and send this data to a range of different devices via RS232. The app is working fine, but I have a number of different versions depending on the make and model of the device I am connecting to. I have to reprogram the prop for the particular device. This is not normally a problem as I intend to make my product available in a manner that it can only work with one device. However I was wondering if there is a way that I can reprogram the prop from a file stored on the USB (in a similar way to the way that the VDrive can be upgraded by placing a particular file in the root folder of the USB). This would also allow my customers to upgrade their product in the future.

Does anyone know if this is possible and how I might go about achieving it?

Paul

Comments

  • Spork FrogSpork Frog Posts: 212
    edited 2008-08-21 19:16
    It's more than possible; it's actually fairly straightforward as far as I've seen. While I have never done this before and don't know the specifics, basically you need the EEPROM driver (which can be found in the object exchange) to write data out to the EEPROM. Then, you can simply write a program that will open a file on the USB key, write it out to the EEPROM, then reset the Prop. The Prop boots off the EEPROM, so viola, new firmware.
  • PaulFPaulF Posts: 62
    edited 2008-08-22 16:56
    Thanks Spork Frog, will have a look through teh objects
Sign In or Register to comment.