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.

MSP430F5418 BSL烧入问题

Other Parts Discussed in Thread: MSP430F5418, MSP430F5418A

求助: MSP430F5418 BSL烧入时报错 

硬件平台: MSP430F5418

BSL工具: TI官方 slau319c提供的附件中的 BSL_Scripter.exe

script 脚本:

               MODE 543x_family COM6
               MASS_ERASE
               RX_PASSWORD
               CHANGE_BAUD_RATE 57600
               RX_DATA_BLOCK Ver6.03.txt
结果: 前面几条命令正常处理,RX时提示 "FAIL writing data block starting at 0x7370"

Debug跟踪看,BSL返回的代码是0x06: "Byte Write Forbidden. This error is returned when a byte write is attempted in a flash area"

将cpu换成5418A, 使用以下script:

               MODE 5xx COM6
               MASS_ERASE
               RX_PASSWORD
               CHANGE_BAUD_RATE 57600
               RX_DATA_BLOCK Ver6.03.txt

烧入正常,没有错误.

请问5418为什么就有这个问题呢?

  • 如下是MSP430F5418和MSP430F5418A在BSL的区别,你可以在http://www.ti.com/lit/an/slaa419b/slaa419b.pdf中对比这两个芯片。建议使用MSP430F5418A,5418不在推荐使用。

    3.3 Bootstrap Loader (BSL) The SYS4 erratum, fixed in the 'A' revisions, states that the Bootstrap Loader (BSL) is non-programmable Read disturb issues when executing code from non-Main memory segments of Flash were worked around in the current BSL using carefully aligned instructions, forcing it to be locked from user edit. These read disturb issues do not affect 'A' revisions of silicon; therefore, the peripheral interface to the BSL is now user-programmable. See the MSP430 Memory Programming User's Guide (SLAU265) for further information concerning how to program the peripheral interface of the BSL.

  • 谢谢楼上解答,经过测试,确实是对齐的问题.

    TI-txt文件中:
    @5C00
    .........
    ........(一直到7429)
    @742A
    .......
    .......

    由于@742A的分割,导致上一包的数据为奇数,造成写入失败,修改tool后正常烧入,希望TI也能将官方的例子修改一下