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.

MSP432E411Y:Program writing using MSP-BSL cannot recognize the response signal from MSP432

Guru 12175 points
Other Parts Discussed in Thread: MSP432E411Y, MSP-EXP432E401Y, UNIFLASH

部品番号: MSP432E411Y

やあ、

下記URLのサイトを参考に、MSP432マイコンのROMに標準で組み込まれているブートローダを使って、PCからUART(RS232C通信)経由でプログラムを書き込んでいきたいと思います。
https://www.ti.com/tool/ja-jp/MSPBSL

この構成に必要な通信ブリッジとして機能するように、BSL Rocket (rev.B) を購入しました。また、最新の BSL-SCRIPTER (3.4.0.1) を PC にインストールしました。

弊社で作成したプログラムは、マイコン内部のFlash ROM領域に書き込まれていますが、右図の赤枠内の状態がYesとなり、電源投入時にROMブートローダに入ることができるようにBOOTCFGレジスタの値を変更しました。オン。

BSL-Scripterのサンプルスクリプトを参考に、ボーレートを9600bpsに変更し、ボード電源投入後、BSL-Scripter.exeを実行したところ、エラーメッセージが表示されました。

このときBSL Rocketから9600bpsの同期信号が送られて
きており、MSP432デバイスから9600bpsで何らかの応答信号が返ってきていることをオシロスコープで確認できました。

ボーレートを 9600bps に変更してスクリプトを実行しようとしましたが、同じエラー メッセージが表示されます。


(送信・応答信号は各ボーレート設定に応じた波形になっています)
上記手順以外に、BSL RocketやBSL-Scripterの設定に必要な項目はありますか?

ありがとう、

アストロ

  • Hi,

      Can you try the stock example in C:\ti\BSL-Scripter\ScriptExampleWindows\E4xx_uart directory. Does the stock example work for you?  In the example script_1.tx it uses 115200 baudrate. Please also make sure you have the correct COM port in the command line. In my case, the COM45 is enumerated as the serial port. You need to go to Windows Device Manager to find out which COM port you have. Another thing is that you need to make sure the flash is fully erased if you want to use the ROM bootloader to first load your flash bootloader (e.g.  boot_uart_flash_MSP-EXP432E401Y.txt)

    //
    // MSP432E4xx - UART Bootloader Example (1st step)
    // This script invoke the ROM bootloder
    // and download the Custom UART Bootloader
    // boot_uart_flash_MSP-EXP432E401Y.txt
    // After the download is finished, reset the device
    // and execute the script_2.txt
    //
    LOG
    MODE E4xx COM45 UART 115200
    RX_DATA_BLOCK_32 boot_uart_flash_MSP-EXP432E401Y.txt

    In the script_2.txt file it disable the autobaud. Please see below. 

    //
    // MSP432E4xx - UART Bootloader Example (2st step)
    // From previous script, the Custom UART Bootloader
    // is present on the device and will be executed
    // when the device is reset.
    //
    // The Custom UART Bootloder on this example runs
    // on 115200 baud and does not require any
    // sync-baud in the beginning, therefore the
    // DISABLE_AUTO_BAUD is called in MODE command
    //
    // Download the blink_app1_MSP-EXP432E401Y.txt that
    // will blink the LED D1 on the Launchpad.
    // When the application blink_app1_MSP-EXP432E401Y
    // is executed, pressing the SW1 on the board
    // will invoke the Custom UART Bootloader in Flash
    //
    // New firmware can be downloaded again.
    // Execute the script_3.txt to have the new firmware
    // that blinks D2.
    //
    LOG
    MODE E4xx COM45 UART 115200 DISABLE_AUTO_BAUD
    RX_DATA_BLOCK_32 blink_app1_MSP-EXP432E401Y.txt

  • Hi,

      If you are using a LaunchPad please make sure the R5 and R6 is populated with 0ohm resistors. 

  • Hi, Charles

    We will check the COM port later.
    In addition, we are checking the operation with a custom board instead of EVM.

    >Another thing is that you need to make sure the flash is fully erasedif you want to use the ROM bootloader to first load your flash bootloader

    How can I be sure the flash has been completely erased? Also, if not completely erased, how do you recommend erasing it?

    Thanks,

    Astro

  • Hi Astro,

      In Uniflash you can do a blank check or you just open the memory window and visually see if the memory is all 0xF. 

  • Hi, Charles

    Regarding the COM port setting, when I connected BSL-Rocket, I confirmed that the port number displayed in the device manager and the port number described in the Script file were the same.

    I also pressed the "Erase Entire Flash" button in CCS and confirmed that the memory in the memory window was 0xFF as shown below.
    However, the same error message did not improve.


    Please let me know if there are any possible factors.

    Thanks,

    Astro

  • Hi Astro,

      - Can you try on a LaunchPad? Can you repeat the same issue? Please make sure R5 and R6 are populated with a zero-ohm resistor. 

      - Do you have just one custom board or multiple? Do have the same problem on all the boards you have?

  • Hi, Charles

      - Can you try on a LaunchPad? Can you repeat the same issue? Please make sure R5 and R6 are populated with a zero-ohm resistor. 

    I don't have an EVM at hand, so I can't do EVM-based operation at this time.

    - Do you have just one custom board or multiple? Do have the same problem on all the boards you have?

    I don't have an EVM at hand, so I can't do EVM-based operation at this time.I have two custom boards.
    In both cases, it has been confirmed that RS232C can be transmitted and received in the board unit test. This problem has occurred on both of the two custom boards.

    I also bought two BSL-ROCKETs, but I tried them both and had a problem. When BSL-Scripter.exe is executed, LED1 of BSL-ROCKET lights up.

    Thanks,

    Astro

  • Hi,

      I don't have a LaunchPad myself. I will need to get one and then make the board modification to populate R5 and R6. If I can get it to work then I can provide additional feedback. However, I will not be able to do that until next week. I will keep you posted when I have the result. Please note that the LaunchPad comes with the onboard XDS110 that can enumerate both debug port as well as Virtual COM port. I won't be using BSL-Rocket as I don't have one.   

  • Hi,

    Thank you for testing with EVM.
    I would appreciate it if you could reply as soon as there is an update.

    Thanks,

  • Hi Astro,

       I will get back with you when my testing is done. 

  • Hi,

      I try on the LaunchPad board and it is successful. Please see below. I first use the ROM-based bootloader to program the boot_uart_flash_MSP-EXP432E401Y.txt. boot_uart_flash_MSP-EXP432E401Y.txt is a flash-based bootloader. After the flash-based bootloader is programmed at 0x0 it will run to receive the application image which is blink_app1_MSP-EXP432E401Y.txt. Once the blinky program is loaded via UART interface, I can see the blinking on the board. 

  • Hi,

    Thank you for checking the steps on the evaluation board.
    It seems that the evaluation board does not have this problem, only the custom board. If the burning procedure is correct, any advice on what to do next to discover the cause?

    Thanks,

  • Hi Astro, 

      Please refer to the MSP-BSL user's guide for details. I wonder if you follow step 1 shown below. https://www.ti.com/lit/pdf/SLAU573C

    Also a heads-up I will be on vacation next week and won't be able to reply until Jan.