Debugging on Clue

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
liquidsquid793
 
Posts: 25
Joined: Sat Feb 27, 2021 4:16 pm

Debugging on Clue

Post by liquidsquid793 »

I have yet to understand how I can single-step code on the Clue when using Arduino. I can print messages, but I just wrote a really lousy bug into my code I have no insight into as I cannot even get console messages out.

Any documentation on how to do so?

Thanks
-Mark

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Debugging on Clue

Post by dastels »

At the bottom of https://learn.adafruit.com/adafruit-clue/pinouts the debug connections are pointed out.

This guide (https://learn.adafruit.com/debugging-th ... 1-with-gdb) mwas written for the SAMD21 but should provide a starting point as the interface (SWD) is the same.

Dave

User avatar
liquidsquid793
 
Posts: 25
Joined: Sat Feb 27, 2021 4:16 pm

Re: Debugging on Clue

Post by liquidsquid793 »

Thanks. It would certainly make life easier when I come across problems like the one I created. Doing a re-write from scratch application with a simple real-time task manager and data acquisition/plotting system. My tasker was ported and updated to C++ along the way, and I am not usually a C++ guy though I am pushing myself to learn it (C purist for a long time). I obviously have some more learning to do.

I will see what pod I can dig up that is recommended. I only have JTAG (Xilinx) and older NXP debug pods that probably wont have a compatible API for your tool chains.

User avatar
dastels
 
Posts: 15653
Joined: Tue Oct 20, 2015 3:22 pm

Re: Debugging on Clue

Post by dastels »

The SWD is just a simplified JTAG. You're not dependant (as far as I know) on GDB.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”