Posts

Showing posts with the label Debug

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 brea...

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

There is an extension for VS Code called Cortex-Debug, using the below links I have made a first pass at developing an OpenOCD launch.json file for debugging the Thing+. Cortex Debug requires gdb version 9 or above, but the version that comes with qorc is 8.x. I downloaded version 10.x from the arm link down below. I tried the most recent version ( 12.x at the time of this writing) but it had some python error that is describe in the stackoverflow link. Cortex Debug also needs a SVD file which QuickLogic doesnt provide, but there is one someone made at the eos-s3-rs repo. It is not fully featured but is a great start. https://lonesometraveler.github.io/2020/03/27/debug.html https://www.digikey.com/en/maker/projects/raspberry-pi-pico-and-rp2040-cc-part-2-debugging-with-vs-code/470abc7efb07432b82c95f6f67f184c0 https://github.com/Josfemova/eos-s3-rs https://developer.arm.com/downloads/-/gnu-rm https://stackoverflow.com/questions/72187185/arm-none-eabi-gdb-cannot-start-because-of-some-pyt...