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.

MSPM0-SDK: hardware-level lock

Part Number: MSPM0-SDK
Other Parts Discussed in Thread: MSPM0G3519, LP-MSPM0G3519, UNIFLASH, SYSCONFIG

Device: MSPM0G3519 (on LP-MSPM0G3519 LaunchPad) Debugger: XDS110

Issue: > I am developing a Secondary BSL. After a flash attempt, I am now locked out of the device.

Errors:

  • "Connection to MSPM0 core failed. Debug access within NONMAIN was disabled."

  • "Flash Programmer: Error, Attempting NONMAIN write without erasing!"

Troubleshooting already done:

  • Tried UniFlash Factory Reset (Fails with connection error).

  • Tried Mass Erase (Fails).

  • The .ccxml is configured for XDS110 and MSPM0G3519.

Request: Can you provide the DSSM command or GEL script needed to force a factory reset when debug access to the core is blocked?

  • Hi Abhishek,

    Are you using one of the secondary BSL examples from the SDK? I would refer to these examples. Also ensure that your project erases NONMAIN, if you are static write protecting any regions of Flash (where the secondary BSL will sit).

    You can try the following steps to attempt to recover the device:

    1. Remove power from device
    2. Either start a project-less debug in CCS or start a new session for the device in Uniflash
    3. Press and hold the NRST button on the LaunchPad (or hold NRST low if using a custom board/no access to an NRST button)
    4. While continuing to hold the button down, supply power to the device
    5. In CCS or Uniflash, issue a Manual factory reset
    6. When the console prompts you to press the NRST button, release it
    7. If the device is unable to factory reset, then the device is likely unrecoverable. This can be confirmed if the device diagnostic read is 0x36. 

    Are you writing anything specific to NONMAIN or changing the configuration within SysConfig? If you erase NONMAIN and power cycle the device before flashing a valid NONMAIN configuration to the device, this will lead to the device being locked up.

    Here are some helpful resources for working with the BSL and NONMAIN:

    Best,

    Owen