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.

MSPM0L1306: Security Level PasswordAuthentication Script not working

Part Number: MSPM0L1306

Hello,

I configured a MSPM0L1306 chip with the security level 1. The Application Debug Access is enabled with password.

After i flashed the programm the chip is succesfully password locked for Debugging.

I then tried to unlock the Chip with the MSPM0_PasswordAuthentication_Auto script with these target config settings:

However when i run the script it gets stuck and does not unlock the chip.

  

and this is the console output:

CS_DAP_0: GEL Output: Initiating Device Password Authentication
CS_DAP_0: GEL Output: MSPM0SWDPassword0: 0xFFFFFFFE
CS_DAP_0: GEL Output: MSPM0SWDPassword1 0xFFFFFFFE
CS_DAP_0: GEL Output: MSPM0SWDPassword2 0xFFFFFFFE
CS_DAP_0: GEL Output: MSPM0SWDPassword3 0xFFFFFFFE
CS_DAP_0: GEL Output: Attempting CS_DAP connection
CS_DAP_0: GEL Output: Attempting SEC_AP connection
CS_DAP_0: GEL Output: Command Sent
CS_DAP_0: GEL Output: Start hardware Reset using NRST
CS_DAP_0: GEL Output: Initiating BOOTRST Board Reset
CS_DAP_0: GEL Output: Reset line asserted
CS_DAP_0: GEL Output: Reset line de-asserted
CS_DAP_0: GEL Output: Board Reset Complete
CS_DAP_0: GEL Output: Reset done
CS_DAP_0: GEL Output: SEC_AP Disconnect
CS_DAP_0: GEL Output: SEC_AP Reconnect
CS_DAP_0: GEL Output: Send Data...
CS_DAP_0: GEL Output: Data 1 Sent = 0xFFFFFFFE

Specs:

Debugger: XDS 110 Debug Probe

IDE: Code Composer Studio 12.3

  • Hi Matthias,

    Does your MSPM0 be able to access via CCS?

    Actually, I don't found error here from log.

    Thanks!

    Best Regards

    Johnson

  • Hello Johnson,

    when the MSPM0 is password locked for debugging it is not connected because. when i try to connect to target i get the following error

    However i can connect to the non debuggable Devices:

    Unfortunately this does not change anything. The script still gets stuck

    Sincerely

    Matthias

  • Hi Matthias,

    You can try to run factor reset command if you can connect DAP Core:

    Scripter -> Factor reset command.

    Thanks!

    Best Regards

    Johnson

  • Hi Johnson,

    Thank you for your reply.

    I know I can factory reset my chip.

    However, my goal is to unlock it with the password, so that I don't have to factory reset the chip every time I want to flash a new program but still keep others from accessing the chip.

    Sincerely Matthias

  • Loop Helic to support this case

  • Hi Johnson,

    Thank you for your response!

    Im not familiar with Loop Helic and cant find any documentation of it. Could you elaborate on your answer. What is Loop Helic?

    Best Regards

    Matthias

  • Hi, 

    I am Helic

    Regards,

    Helic Chi

  • Hi Helic,

    do you have an idea how i could fix this problem, so that i can unlock my chip with the password instead of having to factory reset the chip everytime?

    Sincerely

    Matthias

  • Hello Matthias,

    Did you follow the following steps to unlock your device before? I find that the error information you get is same as the following step 2. If you previously followed the steps below to unlock your device but encountered the issues you raised in this E2E, please contact us.

    The following steps can be followed to unlock a device using DSSM Password mechanism.

    1. Assume the following password configured in NONMAIN configurator:

    2. Attempting to program the device after configuring the password will show the following error:

    3. To configure the password, double-click the .ccxml inside the CCS project, go to the Advanced tab and select the MSPM0 device:

    4. Write the password

    5. On the CCS menu, select View  Target Configurations.

    6. On the Target Configurations window, right-click the .ccxml of an active project and select Launch Selected Configuration.

    7. On the debugger window menu, select Scripts → MSPM0xxxx_Commands (where MSPM0xxxx depends on the current MSPM0 device), and select MSPM0_MailboxPasswordAuthentication_Auto.

    8. CCS should be able to connect to the device. At this point, the device can be reprogrammed but note that this action doesn’t erase NONMAIN, so the password will remain active unless NONMAIN is modified.

    Thanks, and best regards,

    Janz Bai

  • Hello Janz,

    Thank you for your response. I had initially followed those steps. However, the script continues running without making any progress. By this, I mean that the progress bar keeps moving, but the script doesn't seem to be executing any actions.

    Sincerely,

    Matthias

  • Hello Matthias,

    I find that you used the old CCS version: Code Composer Studio 12.3. The CCS 12.3 may have some questions. I suggest that you can download the latest version of CCS and latest version of SDK from TI.com and try to run your project again. If the problem cannot be solved, please contact us.

    BR,

    Janz Bai

  • Hello Janz,

    I have updated CCS to Version 12.4 and the SDK to Version 1.20.01.06. I tried running the script again and it still doesn't work.

    Sincerely,

    Matthias

  • Hi, 

    The latest CCS version is 12.5. Please try it!

    I just follow the Janz guide, it can work normally.

    The following steps can be followed to unlock a device using DSSM Password mechanism.

    Besides, I have tried to set the password as 0xFFFFFFFF.

    After I pass the password Authentication, I can download or debug.

    ----

    I mean that the progress bar keeps moving, but the script doesn't seem to be executing any actions.

    If you are facing the issue like what you said below, try factoryReset once, and then set the password, use ccxml to unlock device.

    Regards,

    Helic

  • Hi Helic,

    I tried with the updated Version of CCS and the error presists. However i tried to switch the Programmer. I used a Launchpad and connected it to the same Microcontroller that i used before. And with the launchpad Programmer it worked. Do you maybe have an Idea why the Script only works with the Launchpad Programmer but not with the XDS110 Debug Probe?

    Best Regards,

    Matthias

  • Hi, 

    Here is the additional procedure of standalone XDS110 for Debug with password.

    Standalone XDS110 Password Debug Procedure.pptx

    Regards,

    Helic