Skip to main content
Visitor II
May 5, 2004
Question

Attempting to write a boot loader

  • May 5, 2004
  • 2 replies
  • 611 views
Posted on May 05, 2004 at 10:51

Attempting to write a boot loader

    This topic has been closed for replies.

    2 replies

    hanan54Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:00

    Hello,

    I am writing now a boot loader and I have same difficulty.

    I converted a *.hex file to *.bin with an old utility. I sent this file in serial communication to the Upsd3354, and programmed it in the main FLASH.

    When I compare the program burned into the FLASH using “PSDsoft express� with the *.bin file, I find that they are different.

    Please advise.

    hanan

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:00

    Hanan,

    If the ''old utility'' you're referring to is ''HEX2BIN'' by programmix it has one difference that will make a comparison between it and PSDSoft fail. If your hex file does not place any data at a certain location in memory, hex2bin outputs 0x00 for that location in the binary file. On the other hand, PSDSoft leaves those areas unprogrammed and they would therefore be 0xFF.

    Another thing I've found is that timing plays a significant role in how well I'm able to program the flash in my device. If I try to start performing IAP too quickly after an erase cycle completes, I don't get the data I expect.

    Hope some of that helps.

    Best Regards,

    phaze426