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.

MSP430FR2110: MSP430FR2110 - Unlocking ERROR: The Debug Interface to the device has been secured - SLAU320AG

Part Number: MSP430FR2110
Other Parts Discussed in Thread: MSP-FET,

We are wanting to confirm if the following info from the SLAU320AG can resolve the locked debugging issue for MSP430FR2110 (we want to erase the lock and the firmware) using in MSP-FET programmer:

* -----/|-------------------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP Flasher v1.3.20                                             *
*      | /                                                                    *
* -----|/-------------------------------------------------------------------- *
*
* Evaluating triggers...
* Invalid argument for -e trigger. Default used (ERASE_ALL).
* Checking for available FET debuggers:
* Found USB FET @ COM11 <- Selected
* Initializing interface @ COM11...done
* Checking firmware compatibility:
* FET firmware is up to date.
* Reading FW version...done
* Setting VCC to 3000 mV...done
* Accessing device...
# Exit: 16
# ERROR: The Debug Interface to the device has been secured
* Powering down...done
* Disconnecting from device...done




If so, we are using the above code to connect with the device with a host running the TEST and REST pins for JMB connection.

Does the code flow follow the above guide? (Based on the code example given by SimpleLink Host for MSP430 JTAG Mailbox SLAA763)


int unlockDevice (void)
{
    // restart device
    ClrTST();
    ClrRST();

    ConnectJTAG();
    
    // Apply again 4wire/SBW entry Sequence
    EntrySequences_RstLow_SBW(); //Restart JTAG – Keep RST low device do not start
   
    ResetTAP(); // reset TAP state machine -> Run-Test/Idle
    
    // shift in JTAG mailbox exchange request
    IR_Shift(IR_JMB_EXCHANGE);
    DR_Shift16(0xA55A);
    DR_Shift16(0x1A1A);

    StopJtag();

    // wait until LPM4
    MsDelay(100);

    // connect to device again, apply entry sequence
    ConnectJTAG();

    // Apply again 4wire/SBW entry Sequence.
    EntrySequences_RstHigh_SBW();

    // reset TAP state machine -> Run-Test/Idle
    ResetTAP();


    if(SyncJtag_AssertPor() != SC_ERR_NONE)
    {
        return(SC_ERR_GENERIC);
    }
}

Although we can get the device ID the above does not seem to erase/unlock the JTAG, if(SyncJtag_AssertPor() != SC_ERR_NONE) always returns an error waiting for sync.

  • Hello Edward,

    If the JTAG connection is truly locked without password, the only way to reverse is through the BSL interface. Please see the following app note for more information about MSP430 Code Protection Features

  • Just to confirm before we do a bunch of work: we do not know the password to the BSL (it was password locked but we do NOT know it), we want to just do a full erase of the device to get it back to factory default. Does the above doc assume we don't know that password?

  • Edward,

    Depending on your configuration, if you give a wrong or default password that does not match the BSL password, the device will mass erase. Check the MSP430 FRAM BSL User Guide for details. 

  • Yes we have disabled the Erase on wrong password. I can't find any information on if it's at all possible that it can be erased be other means if this is the case. I have looked at the document you provided and it's unclear if any external methods are possible. Does this mean we have to un-solder the device and put in a new one?

  • Edward,

    If you have disabled the JTAG, and disabled mass erase on wrong BSL password, then your only method to get back into the device is to attempt BSL passwords until the device is unlocked. (That is unless, you disabled BSL access entirely. ) It would be generally faster to replace the device, yes. If you have locked JTAG and BSL access, then there is no getting into the device.

  • Understood thanks, closing the case.

  • If you have disabled the JTAG, and disabled mass erase on wrong BSL password, then your only method to get back into the device is to attempt BSL passwords until the device is unlocked. (That is unless, you disabled BSL access entirely. ) It would be generally faster to replace the device, yes. If you have locked JTAG and BSL access, then there is no getting into the device.

    Yes, but not for MSP430FR2xx that can be mass erased (back to factory state) by JTAG mailbox system, even JTAG is locked.

    For this (unlocking by mailbox system) MSP Flasher must be used with -e ERASE_USER_CODE

  • zrno soli, thank you this worked and got the device back! Amazing work thanks :)

    C:\ti\MSPFlasher_1.3.20\MSP430Flasher.exe -e ERASE_USER_CODE -n MSP430FR2110
    * -----/|-------------------------------------------------------------------- *
    *     / |__                                                                   *
    *    /_   /   MSP Flasher v1.3.20                                             *
    *      | /                                                                    *
    * -----|/-------------------------------------------------------------------- *
    *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM11 <- Selected
    * Initializing interface @ COM11...done
    * Checking firmware compatibility:
    * FET firmware is up to date.
    * Reading FW version...done
    * Setting VCC to 3000 mV...done
    * Performing user code erase...done
    * Accessing device...done
    * Reading device information...done
    *
    * ----------------------------------------------------------------------------
    * Arguments   : -e ERASE_USER_CODE -n MSP430FR2110
    * ----------------------------------------------------------------------------
    * Driver      : loaded
    * Dll Version : 31400000
    * FwVersion   : 31200000
    * Interface   : TIUSB
    * HwVersion   : U 3.0
    * JTAG Mode   : AUTO
    * Device      : MSP430FR2110
    * EEM         : Level 5, ClockCntrl 2
    * Erase Mode  : ERASE_USER_CODE
    * VCC OFF

**Attention** This is a public forum