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.

MSP430FR4133: Flash MSP430FR4133 Launchpad: The Debug Interface to the device has been secured

Part Number: MSP430FR4133
Other Parts Discussed in Thread: MSP430F133, MSP430G2403

I flashed a firmware to the MSP430FR4133 Launchpad and CCS didn't respond. So I restart the CCS also restart the target board. Then I got error "The Debug Interface to the device has been secured", I tried MSP430 Flasher, not works.

  • What firmware did you load into the MSP430FR4133 device before communication ceased? If any value other than 0000_0000h or FFFF_FFFFh was written to the JTAG/SBW signature (address FF80 to FF83h) then this would lock the JTAG/SBW interface and no longer allow for communication. Please review Section 1.11 of the User's Guide for more information. If this is the case then you will have to re-program the device through the BSL to restore your LaunchPad.

    Regards,
    Ryan
  • Ryan Brown1 said:
    If this is the case then you will have to re-program the device through the BSL to restore your LaunchPad.

    There is no need for BSL. Locked FR4xx device can be mass erased by SBW / JTAG by mailbox / boot code, with USER CODE ERASE (01A1Ah). This can be done by MSP430Flasher.

  • Thanks! It's works!

    msp430flasher.exe -e ERASE_USER_CODE

    solves the problem.

  • I just download the sample project "Blink LED" to my Launchpad. After a USER_CODE_ERASE my Launchpad works properly. I'll read Section 1.11 for more details. Thanks for your help!
  • Hello,

    I received that error while trying to program a MSP430F133 yesterday using the MSP430Flasher program.  I'm not sure what I did but after trying multiple times, it started to program correctly.  It worked fine all afternoon through many reburns...

    I must've been lucky yesterday since today I am unable to program the part whatever I do.

    Running MSP430Flasher with no parameters yeilds Exit: 16, ERROR: The Debug Interface to the device has been secured.

    Running MSP430Flasher -e ERASE_USER_CODE yields Exit: 3 ERROR: Could not erase device memory.  Indeed the user code has not been erased...

    The hardware engineer tells me that the fuse circuitry is not even on the board.  Maybe something floating?

    Any thoughts appreciated.

    - Dave

  • If you run the MSP430Flasher in help mode (-h switch) you will find your answer:

    ERASE_USER_CODE: applicable for FR4xx only!

    therefore, it can't apparently work with your MSP430F133. I have the same problem with my MSP430G2403.

    Regards
    Giuseppe

  • gc.selene said:
    I have the same problem with my MSP430G2403.

    If JTAG fuse is not blown, than problem is related to flashed bad code. If device is with BSL, than it can be mass erased.

    If it is without BSL, than I force multiple fast  SBW / JTAG mass erase sequences, ignoring all SBW / JTAG errors. Don't know if something like this is possible with TI tools.

    C:\msp430>flash -forced -vcc 15 -s 2 -e

    Found SBW+ at COM4

    Set VCC

    Fast Mode

    Get Device
    # JTID Fuse
    0  91 Blown
    Error 101: Syncronization problem.
    Warnning: SBW+ PIO connection does not exist.

    Erase
    Error 107: SBW+ PIO connection does not exist.

    Release Device

    ...

    C:\msp430>flash -forced -vcc 15 -s 2 -e

    Found SBW+ at COM4

    Set VCC

    Fast Mode

    Get Device
    # JTID Fuse Device Core Hard Soft LotWafer DieX DieY
    0  91   OK   3180  1104  12   12  013BB046 0D00 1E00

    Erase
    Time: 37 ms

    Release Device

    Total Time: 141 ms

    C:\msp430>

  • Hi there.

    My system is just intermittent with the can't program problem...  After I replug the programmer in the USB a few times or cycle AUX power to our board, it magically starts to program.  After it programs correctly once, it seems to continue to program for the rest of the day...

    We are using the latest MSP430Flasher program.

    Good luck.

    - Dave

**Attention** This is a public forum