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.

MSP432P401R: BSL

Expert 1070 points

Part Number: MSP432P401R

Hi ,

Please help, My customer have problem with bootloader on his MSP4320LaunchPad.

Here is the actions I am doing:

 

  1. connected MSP432 LaunchPad to PC.
  2. Run BSL+Scripter.exe MSP432_uart.txt (see below)
  3. Observe error (see below)

MSP432_uart.txt - 

//
//Script example MSP432 UART BSL
//Device : MSP432P401R
//Comm Bridge: XDS110 - MSP432LP BackChannelUART
// for this setting, the parity need to be
// set from Scripter side
// When MSP-BSL Rocket is used, parity will be
// generated by the Rocket
//
//Download blink application to
//MSP432 device through UART BSL
//
LOG
MODE P4xx UART 9600 COM6 PARITY
RX_PASSWORD_32 .\pass256_wrong.txt
RX_PASSWORD_32 .\pass256_default.txt
MASS_ERASE
RX_DATA_BLOCK_32 Blink_LED.txt
//RX_DATA_BLOCK_32 Blink_LED.hex
TX_BSL_VERSION_32
TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
//TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.hex
REBOOT_RESET

Observe error

[ERROR MESSAGE]Initialization of BSL P432 failed! Exit the scripter!

  • Hello,

      Maybe the problem has to do with how the BSL was invoked. The MSP432 BSL is invoked by any of the three following approaches. Any one of the conditions is a sufficient condition for BSL entry.

    1. The BSL is called by the bootcode when the application memory is erased. Bootcode reads out addresses 0x0 and 0x4 from the application flash memory and compares it with 0xFFFFFFFF to determine whether or not the application memory is erased.

    2. The BSL is called by application software

    3. The BSL is called by the device bootcode by applying a hardware entry sequence

    For more information on these approaches, please refer to the MSP432P401x Bootloader (BSL) User's Guide - Texas Instruments Section 4.3 BSL Invocation.

    Are you following any of these to invoke the BSL?? If not, please make to meet any of these conditions before running your actions listed above.

    Probably the easiest to accomplish is #1. You can do this with the factory reset, the factory reset will erase the device flash, therefore the BSL will be invoked.

      Hopefully this helps.

         David

  • Hi,

    Customer try to do all of the steps you advise and he still received the error below,please help!

  • Hello,

    Unfortunately the image did not come through. Could you please re-post.

    Thanks,

    David
  • Hi there,

    I just retested the MSP432 Launchpad Rev B and Rev C on my Win 10 machine, and it is working. What I could suggest you to do is the following:

    1. make sure your device is empty. if you are using CCS, you can connect to the debug core, and then run the MSP432_Factory_Reset script.
    2. BSL on MSP432 has the timeout of 10 seconds, so reset the device before you start the BSL


    Let me know if this is still not working on your side.

  • ReadBlock_MSP432P401R.TXTHi ,

    I tried it again. It worked one time exactly with TI’s script example. Please see the log files.

    But now I could not re-program the evaluation board.

    It is blinking with the RED LED1 forever.

    And scripts not working again.

    What could you suggest?

  • MSP432_uart_2017Apr19_145350.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    ---------------------------------------------------------
    BSL Scripter 3.2.1
    PC software for BSL programming
    2017-Apr-19 14:53:50
    ---------------------------------------------------------
    Input file script is : C:/CardiacX/MSP432/bootloader/MSPBSL_Scripter_win_v.3.02.01.00/MSPBSL_Scripter_win/ScriptExample/P4xx_uart/MSP432_uart.txt
    MODE P4xx UART 9600 COM6 PARITY
    RX_PASSWORD_32 .\pass256_wrong.txt
    Read Txt File : C:\CardiacX\MSP432\bootloader\MSPBSL_Scripter_win_v.3.02.01.00\MSPBSL_Scripter_win\ScriptExample\P4xx_uart\pass256_wrong.txt
    [ERROR_MESSAGE]BSL Password is error!
    RX_PASSWORD_32 .\pass256_default.txt
    Read Txt File : C:\CardiacX\MSP432\bootloader\MSPBSL_Scripter_win_v.3.02.01.00\MSPBSL_Scripter_win\ScriptExample\P4xx_uart\pass256_default.txt
    BSL Password is correct!
    MASS_ERASE
    Mass Erase is successful!
    RX_DATA_BLOCK_32 Blink_LED.txt
    Read Txt File : C:\CardiacX\MSP432\bootloader\MSPBSL_Scripter_win_v.3.02.01.00\MSPBSL_Scripter_win\ScriptExample\P4xx_uart\Blink_LED.txt
    Time elapsed of writing 1982 bytes : 2.484 seconds
    Speed of writing data :0.7793(kB/s)
    //RX_DATA_BLOCK_32 Blink_LED.hex
    TX_BSL_VERSION_32
    Vendor:[TI] CI:[0002] API:[0004] PI:[0103] Build-ID:[0004]
    TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.txt
    Write Txt File : C:/CardiacX/MSP432/bootloader/MSPBSL_Scripter_win_v.3.02.01.00/MSPBSL_Scripter_win/ScriptExample/P4xx_uart/ReadBlock_MSP432P401R.txt
    Time elapsed of reading 16384 bytes : 20.31 seconds
    Speed of reading data : 0.7877(kB/s)
    //TX_DATA_BLOCK_32 0x0000 0x4000 ReadBlock_MSP432P401R.hex
    REBOOT_RESET
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Also this file

  • 8372.ReadBlock_MSP432P401R.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    @0000
    00 00 01 20 7B 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 87 07 00 00
    87 07 00 00 00 00 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 87 07 00 00 87 07 00 00 87 07 00 00
    87 07 00 00 AD F1 20 0D B1 48 00 68 00 F4 E0 20
    00 0C 01 90 01 99 01 20 88 40 8D F8 08 00 AC 48
    00 68 00 F0 07 00 00 90 12 E1 AA 48 00 78 60 B3
    A9 49 46 F6 5A 10 08 60 A8 49 08 68 40 F0 01 00
    08 60 A5 49 01 20 08 60 A2 48 00 78 A0 B1 A4 48
    00 78 40 B1 9D F8 08 00 A2 49 4F F4 FA 32 B2 FB
    F0 F0 08 60 06 E1 9D F8 08 00 9E 49 4F F4 FA 42
    B2 FB F0 F0 08 60 FD E0 9D F8 08 00 99 49 4F F4
    00 42 B2 FB F0 F0 08 60 F4 E0 9D F8 08 00 95 49
    4F F4 00 42 B2 FB F0 F0 08 60 EB E0 9D F8 08 00
    90 49 42 F2 10 72 B2 FB F0 F0 08 60 E2 E0 8C 48
    00 78 40 B1 9D F8 08 00 8A 49 4F F4 FA 32 B2 FB
    F0 F0 08 60 D6 E0 9D F8 08 00 86 49 4F F4 FA 42
    B2 FB F0 F0 08 60 CD E0 83 48 00 68 6F F3 9F 20
    AD F8 18 00 11 E0 81 48 05 90 22 E0 80 48 05 90
    1F E0 80 48 05 90 1C E0 7F 48 05 90 19 E0 7F 48
    05 90 16 E0 7E 48 05 90 13 E0 77 48 00 68 10 F4
    E0 20 E8 D0 B0 F5 80 30 E8 D0 B0 F5 80 30 E8 D0
    B0 F5 80 30 E8 D0 B0 F5 80 30 E8 D0 B0 F5 80 30
    E8 D0 BD F9 18 00 18 B9 05 98 6A 49 08 60 99 E0
    BD F9 18 00 40 0B 05 D3 BD F9 18 00 40 F4 70 40
    AD F8 18 00 6B 48 00 78 30 B1 6B 48 00 68 03 90
    6A 48 00 68 04 90 05 E0 69 48 00 68 03 90 69 48
    00 68 04 90 04 98 DD ED 03 0A C0 F5 40 70 00 EE
    10 0A B8 EE C0 1A B7 EE 00 0A 01 EE 20 0A DD ED
    03 0A BD F9 18 00 01 EE 10 0A F2 EE 00 1A B8 EE
    C1 1A 20 EE 21 0A 61 EE 20 0A 80 EE 80 0A 05 98
    00 EE 90 0A B7 EE 00 1A F8 EE 60 0A 31 EE 40 0A
    80 EE 80 0A BC EE C0 0A 46 49 10 EE 10 0A 08 60
    50 E0 9D F8 08 20 49 48 42 49 B0 FB F2 F0 08 60
    48 E0 4D 48 00 78 58 B3 3B 49 46 F6 5A 10 08 60
    3A 49 08 68 40 F0 02 00 08 60 37 49 01 20 08 60
    45 48 00 78 A0 B1 36 48 00 78 40 B1 9D F8 08 00
    34 49 4F F4 FA 32 B2 FB F0 F0 08 60 2A E0 9D F8
    08 00 30 49 4F F4 FA 42 B2 FB F0 F0 08 60 21 E0
    9D F8 08 20 32 48 2B 49 B0 FB F2 F0 08 60 19 E0
    9D F8 08 20 2E 48 27 49 B0 FB F2 F0 08 60 11 E0
    00 98 00 28 3F F4 E9 AE 40 1E 3F F4 1F AF 40 1E
    3F F4 25 AF 40 1E 3F F4 37 AF 40 1E B1 D0 40 1E
    B7 D0 FF E7 08 B0 70 47 28 49 08 68 40 F4 70 00
    08 60 27 49 4F F4 B5 40 08 80 26 49 80 20 08 60
    11 49 46 F6 5A 10 08 60 13 49 4F F4 80 30 08 60
    0B 48 0B 49 00 68 20 F0 07 10 40 F0 03 00 08 60
    09 49 00 20 08 60 1C 48 1B 49 00 68 20 F0 30 00
    08 60 1A 48 19 49 00 68 20 F0 30 00 08 60 70 47
    08 04 01 40 00 89 20 42 00 04 01 40 50 04 01 40
    3C 86 20 42 18 00 00 20 04 04 01 40 60 E3 16 00
    C0 C6 2D 00 80 8D 5B 00 00 1B B7 00 00 36 6E 01
    00 6C DC 02 D8 80 20 42 84 10 20 00 6C 10 20 00
    64 10 20 00 4C 10 20 00 04 89 20 42 88 ED 00 E0
    0C 48 00 40 14 30 04 E0 10 10 01 40 14 10 01 40
    00 2A 4A D0 5F EA 00 0C 8B 07 1C D1 83 07 22 D1
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Hi

    I tried it again. It worked one time exactly with TI’s script example. Please see the log files.

    But now I could not re-program the evaluation board.

    It is blinking with the RED LED1 forever.

    And scripts not working again.

    What could you suggest?

  • I would recommend trying a factory reset.

    e2e.ti.com/.../1735054

**Attention** This is a public forum