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.

[参考译文] Linux:在 ARM CPU 上运行 BSL Scripter 错误

Guru**** 2551110 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/600730/linux-bsl-scripter-error-running-on-arm-cpu

主题中讨论的其他器件:MSP432P401R

工具/软件:Linux

您好!

我在 ARM CPU 上运行 BSL Scripter、并希望通过 UART 对 MSP432进行编程。

我正在使用源代码上提供的示例、并收到此错误:

--------------------------------------
BSL Scripter 3.2.1
用于 BSL 编程的 PC 软件
2017年6月06日10:44:17
--------------------------------------
输入文件脚本为:/home/devel/MSP432/SourceCode/MSP432/script_MSP432_uart.txt
//
//脚本示例 MSP432 UART BSL
//设备:MSP432P401R
//将 Blink 应用程序下载到
//MSP432器件
//
日志
模式 P4xx UART 9600 /dev/ttymxc3奇偶校验
BSL P432初始化成功!
CHANGE_BAUD_RATE 115200
RX_PASSWORD_32 pass256_wrong.txt
阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/pass256_wrong.txt
[ERROR_MESSAGE]BSL 密码错误!
RX_PASSWORD_32 pass256_default.txt
阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/pass256_default.txt
BSL 密码正确!
批量擦除
批量擦除成功!
RX_DATA_BLOCK_32 Blink_LED.txt
阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/Blink_LED.txt
[ACK_ERROR_MESSAGE]标头不正确!
写入512字节所需的时间:0.0544秒
数据写入速度:9.191(kb/s)
//RX_DATA_BLOCK_32 Blink_LED.hex
TX_BSL_VERSION_32
[ACK_ERROR_MESSAGE]标头不正确!
TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
编写 txt 文件:/home/devel/MSP432/SourceCode/MSP432/ReadBlock_MSP432P401R.txt
[ACK_ERROR_MESSAGE]标头不正确!
抛出'STD:out_for_range'实例后调用终止
what():vector::_M_range_check:__n (即67100)>= this->size()(即67100)


有什么想法吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我的文件有问题,我再次用原稿改写了这些文件,它起了作用:

    --------------------------------------
    BSL Scripter 3.2.1
    用于 BSL 编程的 PC 软件
    2017年6月06日11:17:27
    --------------------------------------
    输入文件脚本为:/home/devel/MSP432/SourceCode/MSP432/script_MSP432_uart.txt
    //
    //脚本示例 MSP432 UART BSL
    //设备:MSP432P401R
    //将 Blink 应用程序下载到
    //MSP432器件
    //
    //log
    模式 P4xx UART 9600 /dev/ttymxc3奇偶校验
    BSL P432初始化成功!
    CHANGE_BAUD_RATE 115200
    波特率更改成功!
    RX_PASSWORD_32 pass256_wrong.txt
    阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/pass256_wrong.txt
    [ERROR_MESSAGE]BSL 密码错误!
    RX_PASSWORD_32 pass256_default.txt
    阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/pass256_default.txt
    BSL 密码正确!
    批量擦除
    批量擦除成功!
    RX_DATA_BLOCK_32 Blink_LED.txt
    阅读 txt 文件:/home/devel/MSP432/SourceCode/MSP432/Blink_LED.txt
    写入1982字节所用时间:0.2549秒
    数据写入速度:7.592(kb/s)
    //RX_DATA_BLOCK_32 Blink_LED.hex
    TX_BSL_VERSION_32
    供应商:[TI] CI:[0003] API:[0007] PI:[0205]内部版本 ID:[000A]
    TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
    编写 txt 文件:/home/devel/MSP432/SourceCode/MSP432/ReadBlock_MSP432P401R.txt
    读取16384字节所用的时间:1.998秒
    读取数据的速度:8.007 (kB/s)
    //TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.hex
    reboot_reset
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Michael、

    感谢您分享解决方案。

    此致、
    帕维尔