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 协议解码

Guru**** 2387640 points
Other Parts Discussed in Thread: MSP430F5310
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1129221/msp430f5310-bsl-protocol-decoding

器件型号:MSP430F5310

我们尝试通过创建 BSL 进入序列从外部进入 BSL 模式。 我们能够进入 BSL 模式。   然后、我们将尝试 UART BSL 的示例序列。

将波特率更改为9600
主机:80 02 00 52 02 90 55
预期 BSL:00
我们的输出  :00


获取缓冲器大小
主机:80 01 00 1A 8B 52
预期 BSL:00 80 03 00 3A 04 01 1D 12
我们的输出  :00 80 02 00 3B 07 87 B4   


获取 BSL 版本
主机:80 01 00 19 E8 62
 
我们的输出  :00 80 02 00 3B 04 E4 84


它是否正确?   

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Anas、您好!

    [引用 userid="362719" URL"~μ C/support/microcontroller /MSP-lust-power-microcontroller -group/msp430/f/MSP-lust-microcontroller -forum/1129221/msp430f5310 BSL-protocol -decoding">将波特率更改为9600
    主机:80 02 00 52 02 90 55
    预期 BSL:00
    我们的输出  :00[/报价]

    这看起来是正确的。

    [引用 userid="362719" URL"~μ C/support/microcontroller /MSP-lust-power-microcontroller -group/msp430/f/MSP-lust-microcontroller 论坛/1129221/msp430f5310 BSL-protocol -decoding"]
    获取缓冲器大小
    主机:80 01 00 1A 8B 52
    预期 BSL:00 80 03 00 3A 04 01 1D 12
    我们的输出  :00 80 02 00 3B 07 87 B4   [/报价]

    响应3B (而不是3A)表示您正在接收消息、而不是实际的响应、在这种情况 下、消息为0x07、根据(SLAU319)中的表3-7、表示无法识别该命令。

    这可能是由于表3-5中的脚注 导致的、该脚注指出 TX 缓冲区大小命令未在 F5xx 器件的 BSL 中实现。  

    [引用 userid="362719" URL"~μ C/support/microcontroller /MSP-lust-power-microcontroller -group/msp430/f/MSP-lust-microcontroller 论坛/1129221/msp430f5310 BSL-protocol -decoding"]

    获取 BSL 版本
    主机:80 01 00 19 E8 62
     
    我们的输出  :00 80 02 00 3B 04 E4 84

    [/报价]

    对于这个、它们会得到一个 BSL 锁定错误。 根据同一文档的第1节:

    为了避免意外覆盖 BSL 代码、该代码存储在安全存储器位置、ROM 或受特别保护的闪存中。 为了防止不必要的源代码读取、任何直接或间接允许读取数据的 BSL 命令都受密码保护。

    他们 将需要使用"RX 密码"命令以允许读回数据版本。  

    此致、
    Brandon Fisher