We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

8 posts • Page 1 of 1
tony carbon
Posts: 55
Joined: Fri Aug 27, 2021 9:44 am

Circle Bare Metal Pi IDE with Debug

Thu Nov 14, 2024 1:13 pm

Hi

I am starting to dip my toe into bare metal programming on a Pi Zero2.

Is there a way to use the Cirlce SDK with Vscode and OpenOCD for a debug and compile
enviroment ?


Thanks

rst
Posts: 606
Joined: Sat Apr 20, 2013 6:42 pm

Re: Circle Bare Metal Pi IDE with Debug

Thu Nov 14, 2024 5:34 pm

I'm using an other setup, so I cannot provide info about Vscode, but JTAG debugging with OpenOCD is described in the file doc/debug-jtag.txt in the Circle project.

sean.lawless
Posts: 70
Joined: Thu Jun 06, 2019 6:07 pm

Re: Circle Bare Metal Pi IDE with Debug

Sun Nov 17, 2024 12:06 am

This guide, while for regular Pi and not Zero, should help you get VSCode set up for OpenOCD and debugging. Should be similar except for Zero specific stuff (see post by rst for that - different OpenOCD configuration files).

https://sean-lawless.github.io/computer ... ndixB.html

tony carbon
Posts: 55
Joined: Fri Aug 27, 2021 9:44 am

Re: Circle Bare Metal Pi IDE with Debug

Wed Nov 20, 2024 1:42 pm

rst wrote:
Thu Nov 14, 2024 5:34 pm
I'm using an other setup, so I cannot provide info about Vscode, but JTAG debugging with OpenOCD is described in the file doc/debug-jtag.txt in the Circle project.
sean.lawless wrote:
Sun Nov 17, 2024 12:06 am
This guide, while for regular Pi and not Zero, should help you get VSCode set up for OpenOCD and debugging. Should be similar except for Zero specific stuff (see post by rst for that - different OpenOCD configuration files).

https://sean-lawless.github.io/computer ... ndixB.html
Thanks rst and Sean fot the reply

I'm using the PICO Probe as a SWD adapter, which hopefully should work.

I couldn't find any PI Zero specific OpenOCD settings in the doc/debug-jtag.txt file on the Circle docs page . . .

fanoush
Posts: 1497
Joined: Mon Feb 27, 2012 2:37 pm

Re: Circle Bare Metal Pi IDE with Debug

Wed Nov 20, 2024 4:09 pm

tony carbon wrote:
Wed Nov 20, 2024 1:42 pm
I'm using the PICO Probe as a SWD adapter, which hopefully should work.
I think Zero2/Pi3 needs JTAG, not SWD.

https://github.com/raspberrypi/debugprobe/issues/44
Last edited by fanoush on Wed Nov 20, 2024 4:11 pm, edited 1 time in total.

rst
Posts: 606
Joined: Sat Apr 20, 2013 6:42 pm

Re: Circle Bare Metal Pi IDE with Debug

Wed Nov 20, 2024 4:10 pm

tony carbon wrote:
Wed Nov 20, 2024 1:42 pm
I'm using the PICO Probe as a SWD adapter, which hopefully should work.

I couldn't find any PI Zero specific OpenOCD settings in the doc/debug-jtag.txt file on the Circle docs page . . .
Should be the same settings for RPi Zero 2 W like for RPi 3B. I only used JTAG debugging in AArch64 mode there. The SWD interface is different from JTAG. SWD is described in doc/debug-swd.txt, but only for RPi 5.

tony carbon
Posts: 55
Joined: Fri Aug 27, 2021 9:44 am

Re: Circle Bare Metal Pi IDE with Debug

Fri Nov 22, 2024 11:33 am

fanoush wrote:
Wed Nov 20, 2024 4:09 pm
tony carbon wrote:
Wed Nov 20, 2024 1:42 pm
I'm using the PICO Probe as a SWD adapter, which hopefully should work.
I think Zero2/Pi3 needs JTAG, not SWD.

https://github.com/raspberrypi/debugprobe/issues/44
sean.lawless wrote:
Sun Nov 17, 2024 12:06 am
This guide, while for regular Pi and not Zero, should help you get VSCode set up for OpenOCD and debugging. Should be similar except for Zero specific stuff (see post by rst for that - different OpenOCD configuration files).

https://sean-lawless.github.io/computer ... ndixB.html

Thanks for the links

PS if anyone would be interested on working on this project as a freelance dev then please contact me

jake [at] ne-o [dot] co [dot] uk

thanks

renebarto
Posts: 10
Joined: Thu Apr 20, 2023 7:36 pm

Re: Circle Bare Metal Pi IDE with Debug

Sun Apr 13, 2025 6:09 pm

Though a bit late, I'm using Visual Studio 2019 (not code) with a cross-compiler and CMake on Windows.
I find it quite easy to work with, although I have not tried JTAG on this system, as most are written for Linux.
I can debug my code when it is run inside QEMU quite well, QEMU nowadays supports up to RPI4.
The one problem I have is that debugging with QEMU is broken on VS 2022. I have posted a bug on this with Microsoft, they are currently looking into it.

I'm quite happy with my setup, but will need to look into actual JTAG debugging on the board at some time.

Regards,

Rene Barto

8 posts • Page 1 of 1

Return to "Bare metal, Assembly language"

AltStyle によって変換されたページ (->オリジナル) /