This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430 BSL procedure help

Other Parts Discussed in Thread: MSP430F5438A

Hello everybody,

In my application I need to update the msp430f5438A firmware from another uart device (not a PC) where I've already downloaded my flash image file. So I start studing the "MSP430 Programming Via the Bootstrap Loader user's guide" but I don't have found any example that show how to do that.

Before starting to test my hardware configuration, I would like to be sure that the procedure was correct.

I.e. If I have to flash a firmware of 1024 bytes the rigth way to do it would be:

1. execute a Mass Erase command
2 execute an RX Password command
3. execute an Rx Data Block i.e. of 16 bytes
4. repeat point 3 until all the firmware was flashed (64 times if there are 1024 bytes).

In IAR what is the correct output flash image file to use, and how is it encoded?

Thanks

  • zoster said:
    In IAR what is the correct output flash image file to use, and how is it encoded?

    Well, all formats are 'correct' if you can decode them. :)

    Easiest is IMHO the Ti TXT format.

    It is readable ASCII text, begins with a line

    @xxxx
    where xxxx is the memory locaiton in hex.

    then lines with hexadecimal data follow

    The other simple format is the intel hex format.

    Here each line begins with a colon, then comes the number of bytes in this line, the address where to put the data, the data itself, and a checksum, all in hex.

  • Thanks very much! I always used intel hex format with the TI FlashProgrammer but for my application the Ti TXT format it seems to be very easy to parse and decode...

    And what about the BSL algorithm? Is it correct to erase the memory, send password and then send the packet data from the file?

  • zoster said:
    And what about the BSL algorithm? Is it correct to erase the memory, send password and then send the packet data from the file?

    looks right. However, the password after a mass erase is always 0xffffff.... :)

**Attention** This is a public forum