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.

msp432 BSL 疑问

Other Parts Discussed in Thread: MSPWARE

首先我对msp430系列不熟, 接触msp432大概1个多月了。

现在想试验BSL下载功能,大致浏览了手册,说msp432会自动选择UART, I2C, SPI。

那我现在的问题:

1)线路连接到432的什么引脚?我没看到BSL用的哪个信号脚

2) 软件触发和硬件触发哪种更常用?硬件触发的话, 是在flash mailbox中先设置好触发的引脚,然后模拟出设置脚的时序来触发么?

3)用官方的bsl scripter tool的话,硬件一定要买msp fet么? 还是有开源的线路?

  • MSP432的BSL和MSP430类似

    UART BSL pins: P1.2 - BSLRXD, P1.3 - BSLTXD
     SPI BSL pins: P1.4 - BSLSTE, P1.5 - BSLCLK, P1.6 - BSLSIMO, P1.7 - BSLSOMI
     I2C BSL pins: P3.6 - BSLSDA, P3.7 - BSLSCL

    只要模拟出相应的时序即可唤醒BSL进行程序更新

  • TI有专门针对BSL的文档 http://www.ti.com/lit/ug/slau622b/slau622b.pdf

    另外关于如何实现 MSP432 软件安全以及如何对 MSP432 配置安全更新或 BSL 编程的软件示例都可以从 MSPWare 上获取。

  • 2)软件和硬件触发没有固定的要求,软件触发可以从程序里跳转,硬件要有时序触发。

    3)不一定。

  • 我用了msp430用于BSL的电路 连接 Msp432,然后用官方的bsl script tool来下载程序(用里面的P4xx_uart, 下载BlinkLED_MSP432P401R.txt)

    好像看着没什么问题  但是MCU里的程序没有被覆盖(因为我里面的程序有LCD显示的, 所以可以确认没有擦出成功)

    下面是script tool的日志:

    ---------------------------------------------------------
    BSL Scripter 3.1.0.0
    PC software for BSL programming
    2016-Nov-09 14:01:14
    ---------------------------------------------------------
    Input file script is : D:/WorkingDir/Msp432/BSL_Scripter_Windows/ScriptExample/P4xx_uart/script_P4xx_uart.txt
    MODE P4xx UART 9600 COM3 PARITY
    RX_PASSWORD_32 pass256_wrong.txt
    Read Txt File : D:/WorkingDir/Msp432/BSL_Scripter_Windows/ScriptExample/P4xx_uart/pass256_wrong.txt

    RX_PASSWORD_32 pass256_default.txt
    Read Txt File : D:/WorkingDir/Msp432/BSL_Scripter_Windows/ScriptExample/P4xx_uart/pass256_default.txt

    MASS_ERASE

    RX_DATA_BLOCK_32 BlinkLED_MSP432P401R.txt
    Read Txt File : D:/WorkingDir/Msp432/BSL_Scripter_Windows/ScriptExample/P4xx_uart/BlinkLED_MSP432P401R.txt
    Time elapsed of writing 4391 bytes : 5.216 seconds
    Speed of writing data :0.8221(kB/s)

    TX_BSL_VERSION_32

    TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
    Write Txt File : D:/WorkingDir/Msp432/BSL_Scripter_Windows/ScriptExample/P4xx_uart/ReadBlock_MSP432P401R.txt
    Tx Data Block intended num of bytes : 16384
    Time elapsed of reading 16384 bytes : 0.8456 seconds
    Speed of reading data : 18.92(kB/s)

    REBOOT_RESET


    RX_DATA_BLOCK_32 BlinkLED_MSP432P401R.txt 中, BlinkLED_MSP432P401R.txt 文件不应该有16K的大小么

    为什么Time elapsed of writing 4391 bytes : 5.216 seconds 显示的大小才是4391bytes

    谢谢!

  • 我的硬件线路是参考网上的一个电路图 如下所示

    1. Tx -> P1.3

    3. Rx -> P1.2

    4 RST ->Pin#83

    5 GND -> GND

    6. VCC -> VCC(MCU 有额外的供电,不供电好像对BSL也没有影响)

    7 TST -> P1.0 (BSL 配置的引脚)

    然后软件配置:

    首先在flashmailbox中配置bsl_config, 设置唤醒P1.0 用JTAG下载程序

    然后用BSL连接msp432 出现上述问题

  • 同问,不知道解决了没有