Spark Core - Debugging

Hi,

I already searched a little bit in the Spark Core forum on debugging. I found this thread https://community.spark.io/t/what-ides-do-the-spark-core-developers-use-for-real-debugging/5780. What I would like having is, instead of using Serial prints in functions/methods having the possibility to put breakpoints, step forward, … in my code. What are the possibilities to achieve this?

Thanks.
Guy

You will need a JTAG debugger, like the ST-LINK V2. and the JTAG shield.

If you have those, you might want to try what I did to debug with Netbeans:

Sorry to reopen this thread, but I have a related question. Why would my Jlink don’t find my Spark Core while it seems to find perfectly the Photon??

regards
Albert

Spark core

JLinkExe
SEGGER J-Link Commander V5.00i (’?’ for help)
Compiled Jul 10 2015 18:29:34
DLL version V5.00i, compiled Jul 10 2015 18:29:29
Firmware: J-Link V9 compiled Jun 23 2015 10:00:59
Hardware: V9.30
S/N: 269302919
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Emulator has Trace capability
VTarget = 3.316V
Info: TotalIRLen = ?, IRPrint = 0x…000000000000000000000000
Info: TotalIRLen = ?, IRPrint = 0x…000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x1BA01477
Info: Found SWD-DP with ID 0x1BA01477
No device found on SWD.
Trying to find device on FINE interface.
No device found on FINE interface.
Did not find any core.
Failed to identify target. Trying again with slow (4 kHz) speed.
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x1BA01477
Info: Found SWD-DP with ID 0x1BA01477
No device found on SWD.
Trying to find device on FINE interface.
No device found on FINE interface.
Did not find any core.
No device found at all. Selecting JTAG as default target interface.

Photon

JLinkExe
SEGGER J-Link Commander V5.00i (’?’ for help)
Compiled Jul 10 2015 18:29:34
DLL version V5.00i, compiled Jul 10 2015 18:29:29
Firmware: J-Link V9 compiled Jun 23 2015 10:00:59
Hardware: V9.30
S/N: 269302919
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Emulator has Trace capability
VTarget = 3.338V
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x2BA01477
Info: Found SWD-DP with ID 0x2BA01477
Info: Found Cortex-M3 r2p0, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: CoreSight components:
Info: ROMTbl 0 @ E00FF000
Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 002BB000 SCS
Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 002BB002 DWT
Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
Info: ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 002BB001 ITM
Info: ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 002BB923 TPIU-Lite
Info: ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 002BB924 ETM-M3
No device found on SWD.
Cortex-M3 identified.
Target interface speed: 100 kHz