EOS-S3 Thing+ Debug Setup 8/27/2023

We can now pause and resume a program running on the Thing+ in VS Code using GDB, Black Magic, and Cortex Debug. I found the template for the Black Magic config here:

https://github.com/Marus/cortex-debug/wiki/Black-Magic-Probe-Specific-Configuration

I modified it to fit out situation and uploaded it to the repo.

To setup, you need to not have the jumpers on the Thing+ and open Black Magic in a terminal. Then select BMP Debug from the dropdown debug menu in VS Code and then press F5 to start the debug session.

If it doesnt connect or attach, try to connect to the Thing+ outside of VS Code with Blackmagic and GDB. You may need to unplug the Thing+ or I found putting it into program (green flashing) mode and then connecting to in from GDB in the Terminal helped and I was then able to connect through VS Code.

To set breakpoints, you can click on a line of a file that is part of the same project and folder structure as the elf you are running on the board.

I wasnt able to set a breakpoint and have the code run to it yet, but I was able to log into the serial terminal and see the output of the code work and freeze when I paused it in VS Code. I was also able to see where the code stopped when paused and step around from there.

Comments

Popular posts from this blog

Escape to the Northern Lights

EOS-S3 Thing+ Debug Setup 8/20/2023