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.

MSP430FR5739 JTAG password

Other Parts Discussed in Thread: MSP430FR5739, MSP-EXP430FR5739, MSP-FET

I am trying to password-protect JTAG access of my MSP430FR5739.  But it seems that the device can by unlocked with an arbitrary password.  What is going on?

With MSP-EXP430FR5739 and the 5 jumpers (TEST,RST,RXD,TXD,VCC) in place:

1.  Program the password with MSPFlasher 1.3.9 (on Win 7)

MSP430Flasher.exe -n MSP430FR5739 -w mem5.txt -v -z [RESET]

Contents of mem5.txt:

@FF80
AA AA 00 02 FF FF FF FF 11 11 22 22 FF FF FF FF
q


2.  Power cycle (unplug USB and wait).

3.  Unlock with wrong password:
MSP430Flasher.exe -n MSP430FR5739 -p 0x1234

4.  Read memory (this shouldn't work):
MSP430Flasher.exe -n MSP430FR5739 -r [mem6.txt,0xFF80-0xFF8F]

Contents of mem6.txt:

@FF80
AA AA 00 02 FF FF FF FF 11 11 22 22 FF FF FF FF
q

FYI, there are no errors unless I skip step 3.  Then nothing is read in step 4 (error 16).

  • Sorry to answer my own post, but I see that the byte order was wrong, and mem5.txt should be:

    @FF80
    AA AA 02 00 FF FF FF FF 11 11 22 22 FF FF FF FF
    q

    Then the right password is needed to unlock:
    MSP430Flasher.exe -n MSP430FR5739 -p 0x11112222


    The document SLAA685 has answers and examples.

  • Glad to see that you were able to find a solution to your issue!

    Ryan
  • Hello Till,

    I was unable to reproduce your issue with the steps you listed above. I loaded in a blinky example with the same password configuration as you @FF80. I followed your steps and could not read anything in step 4. If I add -p 0x1111 (your password) inline with your step four, I am able to read those memory contents.
    If I add in the -p command with the correct password (0x1111) inline with step four, I am able to read the memory contents as normal. BTW, when you just do the -p command with no other commands, the MSP430Flasher will not throw an error. -p needs to be used in conjunction with other commands in order to talk to locked devices.

    I would suggest making sure you have the latest version of MSP430Flasher and that your MSP-FET is updated.--- This can be done by connecting to an updated CCS install or via CCS Cloud at http://dev.ti.com

**Attention** This is a public forum