首先我对msp430系列不熟, 接触msp432大概1个多月了。
现在想试验BSL下载功能,大致浏览了手册,说msp432会自动选择UART, I2C, SPI。
那我现在的问题:
1)线路连接到432的什么引脚?我没看到BSL用的哪个信号脚
2) 软件触发和硬件触发哪种更常用?硬件触发的话, 是在flash mailbox中先设置好触发的引脚,然后模拟出设置脚的时序来触发么?
3)用官方的bsl scripter tool的话,硬件一定要买msp fet么? 还是有开源的线路?
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系列不熟, 接触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 上获取。
我用了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
谢谢!