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 Scripter failing initialization with MSP-EXP432P401R dev board

Part Number: MSP432P401R

Hi,

I am having problems getting the BSL Scripter to work. I am getting this error "Initialization of P4xx BSL failed!". I am using an MSP-EXP432P401R dev board. Below is the complete log. What am I missing?

Thanks,

Jeffrey

---------------------------------------------------------
BSL Scripter 3.4.0.1

PC software for BSL programming
2018-May-29 07:54:07
---------------------------------------------------------
Input file script is : C:/ti/ScriptExampleWindows/P4xx_uart/script_p4xx_uart.txt
MODE P4xx UART 9600 COM129 PARITY
[ERROR_MESSAGE]Initialization of P4xx BSL failed! Exit the scripter!

  • Jeffrey,
    I'll have a look and get back to you shortly.
    -Bob L.
  • Hi Bob,
    Any updates here?
    I started an email thread with you 5/31 in case you need anything from me.
    Regards,
    Ryan B.
  • The first thing I would suggest is to have a look at this post, which talks about the same error message. You haven't included source code, so not sure how closely this may match your situation. 

    -Bob L. 

  • Hi Bob,

    I have downloaded "MSP432BSL_1_01_00_00" and flashed my MSP-EXP432P401R dev board with the firmware image "BSL432_MSP432P401.txt" using UNIFLASH.

    I ran the example "script_P4xx_uart.txt" again afterwards. I am still getting the same error.

    Is this something you can try to reproduce on your end?

    Also, I am not sure what you meant when you mentioned that I haven't included source code. What source code are you expecting?

    Thanks,

    Jeffrey

    ---------------------------------------------------------
    BSL Scripter 3.4.0.1

    PC software for BSL programming
    2018-May-29 17:57:01
    ---------------------------------------------------------
    Input file script is : C:/ti/ScriptExampleWindows/P4xx_uart/script_P4xx_uart.txt
    MODE P4xx UART 9600 COM134 PARITY
    [ERROR_MESSAGE]Initialization of P4xx BSL failed! Exit the scripter!

  • Jeffrey,
    I'm not able to replicate this issue. Forwarding on to the tools author.
    -Bob L.
  • Hi Jeffrey,

    could you check that the COM PORT is correct? MSP-EXP432P401R dev board has two ports, one is the debug port, and the other is the Application UART. The Application UART port shall be chosen.

    Other than that, the bootloader will go to sleep mode after 10 seconds. before starting the BSL Scripter, press the reset button on the debug board part.

    Let me know the result of these two check, and if they are not still working, I'll think another possibility. Thank you!

  • ---------------------------------------------------------
    BSL Scripter 3.4.0.1
    
    PC software for BSL programming
    2018-Jun-25 13:14:20
    ---------------------------------------------------------
    Input file script is : C:/ti/ScriptExampleWindows/543x_uart/script_543x_uart.txt
    MODE 543x_family UART 9600 COM134
    //gives the wrong password to do
    //mass eraseof the memory
    RX_PASSWORD .\pass16_wrong.txt
    	Read Txt File  : C:\ti\ScriptExampleWindows\543x_uart\pass16_wrong.txt
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    RX_PASSWORD .\pass16_default.txt
    	Read Txt File  : C:\ti\ScriptExampleWindows\543x_uart\pass16_default.txt
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    RX_DATA_BLOCK .\blinkLED_f5438.txt
    	Read Txt File  : C:\ti\ScriptExampleWindows\543x_uart\blinkLED_f5438.txt
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    	Time elapsed of writing 230 bytes : 0.274 seconds
    	Speed of writing data :0.8197(kB/s)
    CRC_CHECK 0x5C00 0x0020 0xAF15
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    CRC_CHECK 0xffd2 0x00D0 0xC1EA
    	[ACK_ERROR_MESSAGE]Unknown ACK value!
    SET_PC 0x5c00
    
    
    Hi Fatmawati,

    I have been using the Application UART. I have tried it again today. I pressed the RESET button on the dev board just before running the BSL-Scripter. I am getting an ACK_ERROR_MESSAGE. Attached is the log file.

    Thanks,

    Jeffrey

  • Hi Jeffrey,

    on the last post, the log file attachment shows the 543x family script example. Could you please retry with the ScriptExampleWindows\P4xx_uart\script_P4xx_uart.txt ?

    The first command shall be: MODE P4xx UART 9600 PARITY COM134

  • Hi Fatmawati,
    Thanks for pointing out the proper script file. I finally got it to work. But it looks like I have to reload the BSL432_MSP432P401.txt every time for the script to work.
    Is there a way to prevent the BSL code from getting erased or overwritten?
    Also, is there a script command available to send a reset pulse to the MSP432 chip?
    Thanks again,
    Jeffrey
  • Hi Jeffrey,

    Glad to hear that is working now! :)

    I don't expect the Bootloader is erased when it is executed. The bootloader sector in @20:2000h only erased by the JTAG/SWD when you run the debug mode in CCS for example and having the configuration in Debug setup to "Allow erase BSL area".

    One other note: when you already download an application using the bootloader and program the interrupt vector area @0h-100h, you can not talk to the bootloader anymore. Maybe this is the reason why you download the Bootloader image again using debugger, because at the same time you are erasing the @0h-100h and the bootloader become available again. You can validate this by keeping @0h-100h empty, and download the image, and then reset the device. bootloader should work in this case.

    However, the bootloader is still callable when you call it via software, or activate the hardware invocation. Hardware invocation of the bootloader is part of the security features in MSP432P4. you configure a pin to locate the invocation with certain polarity. when the device is powered up, the bootcode will read the polarity on the configured pin. if it is the configured polarity, the boocode will execute the bootloader.

  • Hi Fatmawati,
    I did verify that the bootloader code is still intact after loading an application code.
    Regarding the hardware invocation, do I need to change my application code to configure and read a pin? Or is there a designated pin already for this purpose? I was expecting the BSL in MSP432 to work like in the MSP430.
    Do you have an example code available for invoking the bootloader via hardware and software?
    Thanks,
    Jeffrey
  • Hi Jeffrey,

    software invocation example is under User's Guide section 3.3.1

    Regarding hardware invocation: the configuration is programmed in flash mailbox area @20:0000h and it will be read the configured on the start up. afterwards, the memory will be erased, but the configuration stayed in the device.

    For hardware invocation this is the  example code.

  • Hello Jeffrey,

    Please confirm if the response from Fatma has resolved the issue?

**Attention** This is a public forum