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.

MSP430F5310: BSL protocol decoding

Part Number: MSP430F5310


We are trying to enter BSL mode from an external way by creating BSL entry sequence. We are able to enter into BSL mode.  Then we are trying example sequences for uart BSL.

Changing baud rate to 9600
Host: 80 02 00 52 02 90 55
Expected BSL: 00
Our output  : 00


Get buffer size
Host: 80 01 00 1A 8B 52
Expected BSL: 00 80 03 00 3A 04 01 1D 12
Our Output  : 00 80 02 00 3B 07 87 B4  


Get BSL version
Host: 80 01 00 19 E8 62
 
Our Output  : 00 80 02 00 3B 04 E4 84


Is it correct or not?  

  • Hi Anas,

    Changing baud rate to 9600
    Host: 80 02 00 52 02 90 55
    Expected BSL: 00
    Our output  : 00

    This looks correct.


    Get buffer size
    Host: 80 01 00 1A 8B 52
    Expected BSL: 00 80 03 00 3A 04 01 1D 12
    Our Output  : 00 80 02 00 3B 07 87 B4  

    The response 3B (as opposed to 3A) indicates you are receiving a message rather than an actual response, in this case the message is 0x07, which according to Table 3-7 in (SLAU319), indicates that the command is not recognized.

    This is likely due to the footnote in table 3-5, which says that the TX Buffer Size command is not implemented in the BSL of our F5xx parts. 

    Get BSL version
    Host: 80 01 00 19 E8 62
     
    Our Output  : 00 80 02 00 3B 04 E4 84

    For this one, they are getting a BSL Locked Error. per section 1 of the same document:

    To avoid accidental overwriting of the BSL code, this code is stored in a secure memory location, either ROM or specially protected flash. To prevent unwanted source readout, any BSL command that directly or indirectly allows data reading is password protected.

    They will need to make use of the RX Password command to allow the data version to be read back. 

    Best Regards,
    Brandon Fisher

**Attention** This is a public forum