- tony carbon
- Posts: 55
- Joined: Fri Aug 27, 2021 9:44 am
Circle Bare Metal Pi IDE with Debug
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
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
Re: Circle Bare Metal Pi IDE with Debug
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
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
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
Thanks rst and Sean fot the replysean.lawless wrote: ↑Sun Nov 17, 2024 12:06 amThis 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
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 . . .
Re: Circle Bare Metal Pi IDE with Debug
I think Zero2/Pi3 needs JTAG, not SWD.tony carbon wrote: ↑Wed Nov 20, 2024 1:42 pmI'm using the PICO Probe as a SWD adapter, which hopefully should work.
https://github.com/raspberrypi/debugprobe/issues/44
Last edited by fanoush on Wed Nov 20, 2024 4:11 pm, edited 1 time in total.
Re: Circle Bare Metal Pi IDE with Debug
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 wrote: ↑Wed Nov 20, 2024 1:42 pmI'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 . . .
- tony carbon
- Posts: 55
- Joined: Fri Aug 27, 2021 9:44 am
Re: Circle Bare Metal Pi IDE with Debug
fanoush wrote: ↑Wed Nov 20, 2024 4:09 pmI think Zero2/Pi3 needs JTAG, not SWD.tony carbon wrote: ↑Wed Nov 20, 2024 1:42 pmI'm using the PICO Probe as a SWD adapter, which hopefully should work.
https://github.com/raspberrypi/debugprobe/issues/44
sean.lawless wrote: ↑Sun Nov 17, 2024 12:06 amThis 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
Re: Circle Bare Metal Pi IDE with Debug
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
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
Return to "Bare metal, Assembly language"
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion