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.

MSPM0G3519: MSPM0G3519 unrecoverable after flashing CSC to it

Part Number: MSPM0G3519
Other Parts Discussed in Thread: UNIFLASH, ,

I have used uniflash to write CSC to 0x0 and 0x40000 on an MSPM0G3519, I have written an image to 0x7800, I am using an XDS110 debugger that is a part of the MSPM0G3519 dev board as my debugger. CSC seems to hang and never successfully transitions to the main application. The board also seems locked or stuck after this operation. I have attempted to use factory reset auto in uniflash to reset the board but it does not complete successfully, it hangs issuing the factory reset command. Is there some other method I can use to reset the board? Or some uniflash settings that can be used to hold it in reset while it resets the board?

  • Uniflash hangs here

  • Hi Aaron,

    You can try using the MSPM0 Factory Reset GUI tool. Section 7.1 in the MSPM0 MCUs Development Guide also discusses different methods of unlocking a device.

    As for Uniflash, I would recommend the following sequence:

    1. Disconnect the board from power
    2. Create Uniflash session
    3. Hold NRST button, then connect device (continue to hold NRST button)
    4. Issue a Factory Reset Manual command
    5. When the console prompts to Press the reset button..., release the NRST button
    6. The device should now be unlocked. If not, try two more times.

    If these steps don't work, then the device is bricked. This usually happens if you erase NONMAIN and don't flash anything to NONMAIN before power cycling.

    For some clarification, what do you mean by CSC? Is this a secondary bootloader?

    Best,

    Owen

  • Hi Owen,

    CSC is TI's fork of MCUBoot for the MSPM0 MCUs, https://software-dl.ti.com/msp430/esd/MSPM0-SDK/2_02_00_05/docs/chinese/middleware/boot_manager/doc_guide/doc_guide-srcs/customer_secure_users_guide_CN.html

    I tried the Factory reset GUI and it is unable to find a connection to attach to. I have an MSPM0G3519 dev board attached to the PC being used as a debugger. Does the gui require the standalone XDS110 to work?

    When you say hold the NRST button, is that the button on the LP-MSPM0G3519 dev board or is it a reset button that would exist on my custom board? The board I am working on does not have a reset button.

  • Hi Aaron,

    Thanks for the clarification. Did you use the customer_secure_sample_image example for your application code?

    You don't necessarily need a standalone XDS110 to use with the Factory Reset GUI. The LaunchPads have an on-board XDS110, so using the provided USB cable is sufficient. However, since you are using a custom board, it is likely that you will need one.

    How are you currently connecting your board to your computer or debugger?

    By holding the NRST button, I was referring to the button on the LaunchPad. If your custom board does not have a reset button, I would see if it is possible for you to drive the reset pin low instead.

    Best,

    Owen