MSPM0-SDK: how to connect the debugger in IAR with MSPM0L1306 LaunchPad

Part Number: MSPM0-SDK
Other Parts Discussed in Thread: MSPM0L1306, UNIFLASH

Hello,

I'm working on MSPM0L1306 LaunchPad before my project starts with MSPM0L1305XRHB.

I'm trying to connect/debug the MSPM0L1306 LaunchPad (LP‑MSPM0L1306) using IAR Embedded Workbench(Arm 9.50.2). Also, tried on  9.20.1 

  1. When I connected usb cable to the launchpad, XDS110 Class Application/User UART(COM14) showed up.
  2. I choose Project → Options → Debugger Set: Driver = TI XDS110 Emulator, Debugger → Setup (Tab) Interface = SWD (default for MSPM0)Reset = Normal / System reset
  3. It looked for UNKNOWN_XDS110_SWD.dat file and showed the error(can't find it).
  4. I copied MSP432_XDS110_SWD.dat and rename it to UNKNOWN_XDS110_SWD.dat because the Launchpad has MSP432.
  5. Then it showed another error: Unknown CPU core family found in the emulator board file: ..\settings\prjojectname....dat

Could you please help me resolve this issue? Also, are there any instructions or guidelines for setting up the IAR environment for this MSPM0L1306 LaunchPad?

Thanks,
HJ

 

  • I can remove the errors above by setting up target/device as MSPM0L1306 in project options. But I can't still connect correctly because the following errors: Fatal error: Failed to connect the XDS emulator (connect DAP)... The target failed to see correctly formatted SWD header. the connection to the target may be unreliable. Try lowering the TCLK setting before try again. I set the lowest clock but only to fail. 

  • Hi HJ,
    Can you try and connect the device through CCS or Uniflash? I want to double check there isn't a problem with the connections.

    Best Regards,

    Diego Abad

  • Thank you for your suggestion. The connection is also failing in CCS. I received the following message:

    "CS_DAP_0: Error connecting to the target: DAP Connection Error. This could be caused by the device having gone to low power mode. Try forcing an external reset. If the error persists, try forcing BSL, a Mass Erase, or a Factory Reset. Check device FAQs for more information."

    When I hold the reset button and attempt to connect, I get this message instead:

    *"Error connecting to the target:

    (Error -6305) PRSC module failed to write to a router register.
    (Emulation package 12.8.0.00189)"

  • Now I understand the issue. The board itself was working correctly, but my firmware likely caused problems with the clock configuration or something similar. I was able to flash it successfully the first time, but then encountered the error and couldn’t recover it afterward.

    I was able to recover the device by performing a factory reset using UniFlash. Your suggestions really helped me identify and solve the problem—thank you!

**Attention** This is a public forum