When SWD debug policy is set as an encryption with a password, generate the DSSM command for SWD password authentication before debugging or downloading new firmware.
TI provides the .ccxml file for the MSPM0 debug configurations with the XDS110 tool. Figure 6-5 shows the steps to set the 128-bit password for following DSSM command:
- In the targetConfigs folder, open the .ccxml file.
- Select Advanced to open the XDS110 Target Configuration.
- Select MSPM0 device to open the Device Properties Page.
- Input 128-bit password in the SWD Password box.
Note: The password set in the .ccxml file is applicable for the all DSSM operation passwords, including SWD access, Factory reset, and Mass erase.
After setting the correct password, run the DSSM script to unlock SWD interface. Figure 6-6 shows the steps to run DSSM script with CCS v12:
- Under View in top menu, select Target Configurations.
- Select the .ccxml file of the target project. The .ccxml file is set with a password.
- Select Launch the selected configuration.
- In the debug window, select XDS110 USB Debug Probe.
- In the top menu, select Scripts.
- Select the target MSPM0 device to open the command list.
- Select DebugAccessPasswordAuthentication_Auto to generate the DSSM command. The CCS automatically calls the DSSM command and sends the password in the .ccxml file.
- After the command execution completes and the device unlocks, perfom further debugs with the Load Program or Load Symbol.
If the user debugs in the CCS v20, the process for generating the DSSM command is slightly different. Figure 6-7 shows the process.
- In the project, locate targetConfigs and select the .ccxml file.
- Right-click the .ccxml file and select Start Project-less Debug.
- At the top-menu, select Scripts, then select MSPM0 Device Commands.
- Select and generate the DSSM command. Select DebugAccessPasswordAuthentication_Auto to unlock the SWD interface.
- After successfully completing the command execution, locate the top menu. Select Run to Debug Project or Flash Project.
Note: After successfully executing the password authentication sequence for debug access, the device remains in an unlocked state until the next BOOTRST.