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: BSL Scripter error running on ARM CPU

Tool/software: Linux

Hi,

i have the BSL Scripter running on ARM CPU and want to program the MSP432 via UART.

I am using the example provided on source code and i am getting this error:

---------------------------------------------------------
BSL Scripter 3.2.1
PC software for BSL programming
2017-Jun-06 10:44:17
---------------------------------------------------------
Input file script is : /home/devel/MSP432/SourceCode/MSP432/script_MSP432_uart.txt
//
//Script example MSP432 UART BSL
//Device : MSP432P401R
//Download blink application to
//MSP432 device through UART BSL
//
LOG
MODE P4xx UART 9600 /dev/ttymxc3 PARITY
Initialization of BSL P432 succeed!
CHANGE_BAUD_RATE 115200
RX_PASSWORD_32 pass256_wrong.txt
Read Txt File : /home/devel/MSP432/SourceCode/MSP432/pass256_wrong.txt
[ERROR_MESSAGE]BSL Password is error!
RX_PASSWORD_32 pass256_default.txt
Read Txt File : /home/devel/MSP432/SourceCode/MSP432/pass256_default.txt
BSL Password is correct!
MASS_ERASE
Mass Erase is successful!
RX_DATA_BLOCK_32 Blink_LED.txt
Read Txt File : /home/devel/MSP432/SourceCode/MSP432/Blink_LED.txt
[ACK_ERROR_MESSAGE]Header incorrect!
Time elapsed of writing 512 bytes : 0.0544 seconds
Speed of writing data :9.191(kB/s)
//RX_DATA_BLOCK_32 Blink_LED.hex
TX_BSL_VERSION_32
[ACK_ERROR_MESSAGE]Header incorrect!
TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
Write Txt File : /home/devel/MSP432/SourceCode/MSP432/ReadBlock_MSP432P401R.txt
[ACK_ERROR_MESSAGE]Header incorrect!
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 67100) >= this->size() (which is 67100)


Any idea?

  • i had something wrong with the files and i overwrote them with the originals again and it worked:

    ---------------------------------------------------------
    BSL Scripter 3.2.1
    PC software for BSL programming
    2017-Jun-06 11:17:27
    ---------------------------------------------------------
    Input file script is : /home/devel/MSP432/SourceCode/MSP432/script_MSP432_uart.txt
    //
    //Script example MSP432 UART BSL
    //Device : MSP432P401R
    //Download blink application to
    //MSP432 device through UART BSL
    //
    //LOG
    MODE P4xx UART 9600 /dev/ttymxc3 PARITY
    Initialization of BSL P432 succeed!
    CHANGE_BAUD_RATE 115200
    Baud rate change is successful!
    RX_PASSWORD_32 pass256_wrong.txt
    Read Txt File : /home/devel/MSP432/SourceCode/MSP432/pass256_wrong.txt
    [ERROR_MESSAGE]BSL Password is error!
    RX_PASSWORD_32 pass256_default.txt
    Read Txt File : /home/devel/MSP432/SourceCode/MSP432/pass256_default.txt
    BSL Password is correct!
    MASS_ERASE
    Mass Erase is successful!
    RX_DATA_BLOCK_32 Blink_LED.txt
    Read Txt File : /home/devel/MSP432/SourceCode/MSP432/Blink_LED.txt
    Time elapsed of writing 1982 bytes : 0.2549 seconds
    Speed of writing data :7.592(kB/s)
    //RX_DATA_BLOCK_32 Blink_LED.hex
    TX_BSL_VERSION_32
    Vendor:[TI] CI:[0003] API:[0007] PI:[0205] Build-ID:[000A]
    TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
    Write Txt File : /home/devel/MSP432/SourceCode/MSP432/ReadBlock_MSP432P401R.txt
    Time elapsed of reading 16384 bytes : 1.998 seconds
    Speed of reading data : 8.007(kB/s)
    //TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.hex
    REBOOT_RESET
  • Hi Michael,

    Thanks for sharing the solution.

    Regards,
    Pavel