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.

LP-MSPM0G3507: Issue with Flashing Code to MSPM0G3507 MCU Using J-Link Debug Probe

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: MSPM0G3507, SEGGER

Tool/software:

Subject: Issue with Flashing Code to MSPM0G3507 MCU Using J-Link Debug Probe

Dear TI Support,

Good morning.

I am working with the MSPM0G3507 (LP_MSPM0G3507) Evaluation Kit for a project and using CCS IDE for coding and debugging. I am able to successfully code and debug within the IDE. However, I am encountering an issue when flashing the code to the MCU using an external debug probe (Segger J-Link).

While the code downloads successfully to the MCU using the J-Link flash tool, it does not work as expected. The CCS IDE generates the output file in the .out format, but the J-Link flash tool only supports .hex or .bin files. To address this, I changed the IDE settings to generate the output file in .hex format (Navigate to Build > Arm Linker > Output and change the extension to .hex). After flashing the Eval Kit using the external debug probe, the code flashed successfully, but still did not work.

Subsequently, I switched to the internal debug probe and tried flashing the code again. This time, I encountered the following error:

CORTEX_M0P: Error connecting to the target: (Error -614 @ 0x0) The target indicates there is an error condition from a previous SWD request. Clear the error condition, and try the SWD request again. (Emulation package 20.0.0.3178)

After performing a hard reset, I was able to successfully program the internal flash, but my original issue remains. While I can flash the code using the J-Link tool, the code is still not working as expected.

Could you kindly assist me in understanding why the code does not work after flashing with the J-Link tool? I would appreciate any guidance on troubleshooting this issue.

Thank you for your support.

Best regards,
Deepak Raj R