Shop OBEX P1 Docs P2 Docs Learn Events
Bootloader problem (fixed) — Parallax Forums

Bootloader problem (fixed)

LeonLeon Posts: 7,620
edited 2009-10-09 23:43 in Propeller 1
I can't get the bootloader code from the Obex to work on our hardware. The SD card is on pins P12-P15, so I changed the 0 in i:=sd.mount(0) to 12. Even if the booted code isn't working the code.bin file should be deleted by the bootloader, as I understand it, but that isn't happening.

I know the SD card is working OK because I can write data to it and read it back with the fsrw23 code.

Has anyone got any ideas?

BTW, this is an interesting application - a data logger for refrigerated containers which needs to drive a printer in the cab, and also display data on a VGA display.

[noparse][[/noparse]Edit]

I think I've found the problem - the board was designed with a 32k boot EEPROM and I assumed it was a 64k! We have a second much larger EEPROM on the board, so I can remove the boot device, and use the larger device for booting, with a few circuit changes.

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

Post Edited (Leon) : 10/9/2009 9:12:18 PM GMT

Comments

  • mctriviamctrivia Posts: 3,772
    edited 2009-10-09 13:13
    it is probably the eeprom is to small. I wrote it to work with a 64k EEPROM like in my propmodules

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • RaymanRayman Posts: 15,372
    edited 2009-10-09 14:50
    I've used parts of FemtoBasic to do it before...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • LeonLeon Posts: 7,620
    edited 2009-10-09 21:08
    I just made the changes to our PCB and got the bootloader working. Many thanks to Matthew et al for the code. It means that the customer can just be mailed a new SD card with the latest software, and someone simply has to plug it into our system in each vehicle cab and press the reset button to update the firmware. If they had to use a laptop and Prop Plug a lot more training would be required, and updating would be much less convenient.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 10/9/2009 9:14:47 PM GMT
  • mctriviamctrivia Posts: 3,772
    edited 2009-10-09 21:39
    Just make sure you use the nodelete option on the card if multiple machines are to be programed from the same card.

    And also make sure it does not get left in.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
  • LeonLeon Posts: 7,620
    edited 2009-10-09 22:50
    I was intending to use the nodelete option and we'll have to make that the customer understands the importance of removing the card. I suppose that another way to ensure that the card doesn't get deleted would be to enable write-protect on the card connector pins. The full-size adapter has a switch that performs that function.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 10/9/2009 10:55:58 PM GMT
  • mctriviamctrivia Posts: 3,772
    edited 2009-10-09 23:43
    Well it is not to critical but it will take an extra minute to boot and where out eeprom after 1m boots

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    propmod_us and propmod_1x1 are in stock. Only $30. PCB available for $5

    Want to make projects and have Gadget Gangster sell them for you? propmod-us_ps_sd and propmod-1x1 are now available for use in your Gadget Gangster Projects.

    Need to upload large images or movies for use in the forum. you can do so at uploader.propmodule.com for free.
Sign In or Register to comment.