Other Parts Discussed in Thread: MSPM0L1306, UNIFLASH, MSPM0C1104
Tool/software:
Hello,
I am experiencing some issues trying to setup PyOCD for flashing and debugging the MSPM0L1306 via the on-board XDS110 debug probe of the LaunchPad. I installed the latest CMSIS pack for the target (https://www.keil.arm.com/packs/mspm0l11xx_l13xx_dfp-texasinstruments/boards/).
The debug probe is detected by PyOCD:
$ pyocd list # Probe/Board Unique ID Target ---------------------------------------------------------------------------------------- 0 Texas Instruments XDS110 (03.00.00.22) Embed with CMSIS-DAP ML130001 n/a
However, when I try to connect to the target, no cores are discovered:
$ pyocd cmd -t mspm0l1306 -v 0000368 I Target type is mspm0l1306 [board] 0000455 I DP IDR = 0x6ba02477 (v2 rev6) [dap] 0000470 I AHB-AP#0 IDR = 0x84770001 (AHB-AP var0 rev8) [discovery] 0000470 I AP#1 IDR = 0x002e0001 (AP var0 rev0) [discovery] 0000471 I AP#2 IDR = 0x002e0000 (AP var0 rev0) [discovery] 0000472 I AP#3 IDR = 0x002e0003 (AP var0 rev0) [discovery] 0000472 I AP#4 IDR = 0x002e0002 (AP var0 rev0) [discovery] 0000472 E Error while initing target: No cores were discovered! [commander]
Debugging and Flashing via CCS and UniFlash works. The NONMAIN memory is set to factory settings (not changed).
Interestingly, PyOCD works for the MSPM0C1104. Here the verbose output for comparison:
$ pyocd cmd -t mspm0c1104 -v 0000927 I Target type is mspm0c1104 [board] 0001207 I DP IDR = 0x6ba02477 (v2 rev6) [dap] 0001213 I Debug/System power-up request sent [functions] 0001217 I executing SWD power up [functions] 0001223 I Current state of access point is: 80027 [functions] 0001236 I Current state of access point is: 79002f [functions] 0001262 I AHB-AP#0 IDR = 0x84770001 (AHB-AP var0 rev8) [discovery] 0001264 I AP#1 IDR = 0x002e0001 (AP var0 rev0) [discovery] 0001265 I AP#2 IDR = 0x002e0000 (AP var0 rev0) [discovery] 0001266 I AP#4 IDR = 0x002e0002 (AP var0 rev0) [discovery] 0001270 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xf0000000 (designer=43b:Arm part=4c1) [rom_table] 0001274 I [0]<e00ff000:ROM class=1 designer=43b:Arm part=4c0> [rom_table] 0001274 I AHB-AP#0 Class 0x1 ROM table #1 @ 0xe00ff000 (designer=43b:Arm part=4c0) [rom_table] 0001277 I [0]<e000e000:SCS v6-M class=14 designer=43b:Arm part=008> [rom_table] 0001279 I [1]<e0001000:DWT v6-M class=14 designer=43b:Arm part=00a> [rom_table] 0001281 I [2]<e0002000:BPU v6-M class=14 designer=43b:Arm part=00b> [rom_table] 0001285 I CPU core #0: Cortex-M0+ r0p1, v6.0-M architecture [cortex_m] 0001286 I Setting core #0 (Cortex-M0+) default reset sequence to ResetSystem [pack_target] 0001289 I 1 hardware watchpoints [dwt] 0001291 I 2 hardware breakpoints, 0 literal comparators [fpb]
So I assume there must be some differences between the MSPM0L1306 and MSPM0C1104 in how the debug connection is handled. I compared the CMSIS pack files, but there seems to be no real functional differences in the debug sequences definitions.
Any ideas what could cause the problem?
Thanks in advance.