Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Debugging on Clue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Debugging on Clue

by liquidsquid793 on Thu Mar 25, 2021 10:30 pm

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

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

Re: Debugging on Clue

by dastels on Fri Mar 26, 2021 9:56 am

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

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

Dave

dastels
 
Posts: 6094
Joined: Tue Oct 20, 2015 3:22 pm

Re: Debugging on Clue

by liquidsquid793 on Fri Mar 26, 2021 3:16 pm

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.

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

Re: Debugging on Clue

by dastels on Fri Mar 26, 2021 5:59 pm

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

Dave

dastels
 
Posts: 6094
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.