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.

MSPM0L1117: Password protection using Segger J-Link

Part Number: MSPM0L1117
Other Parts Discussed in Thread: SEGGER

Tool/software:

Hi,

Could you please let us know how to use Segger J-Link to protect flash memory? I didn't see any such settings in J-Link for this device at the moment.

If we set 16 byte password to access flash memory, can we use J-Link to unlock the device? 

Thanks and regards,

Harshal Pawar

  • Hi Harshal,

    Do you mean access SWD port with password by J-Flash?

    You could set the password in CCS project and generate the output file (.out, .hex) with nonmain region, which is used for password storage.

    Then in the J-Flash, you could enable nonmain region for loading the output file to MSPM0 to protect debug port.

    As for how to access MCU with J-Flash by password, I think it could be supported by some Jlinkscript, let me check internally and get the feedback to you.

    Best Regards,

    Pengfei

  • Hi,

    I didnt receive any feedback on above topic.

    Could you please let know know how to unlock control using J-Link if it is programmed with 16 byte password? 

    I didnt see any popup window connecting when we try to connect board using J-Link. We couldnt connect J-Link to the board and it seems there is not any provision in J-link for password related feature on this micro.

    Thanks and regards,

    Harshal Pawar

  • Hi Harshal,

    I'm sorry for late response.

    Here I uploaded a JlinkScript for the unlock SWD by password: https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/DSSM_5F00_Command-_2800_1_2900_.JLinkScript

    And the set up steps are:

    1. Change the password setting in the Jlinkscript.

    2. Use Jlinkscript in J-Flash setting. (Options-Project settings...)

    3. Just connect or program in J-Flash.

    Best Regards,

    Pengfei