Arduino IDE Version 2 Debug Working Yet

Hello,
I downloaded the IDE ver2 beta 11 last evening to take a look at it and looking good so far, compile and upload MUCH faster, well done the team!

I tried to figure the debug out, but no luck at all, found an old beta 5 video that didn't help much with really annoying muzac.

I have Nano's, UNO, Black Pill, Adafruit Feather and STM Nucleo-32 boards to test with also an ST STLink so looking for bit of help to get me into the debugger please?
Many thanks imk

The only official Arduino boards platform with support for the debugger is "Arduino SAMD Boards" of the Arduino Zero, MKR Boards and Nano 33 IoT boards.

The Zero is the most convenient due to having a built-in debugger on board. So it's really a "plug and debug" experience. The second most convenient is the MKR1000, due to it having a standard SWD header on the board that makes it easy to connect an external debug probe. The rest of the MKR boards have the SWD pins broken out to a footprint for an SMT 2x3 0.1" pitch pin header on the bottom of the board. This is a bit annoying to make the connections to, but manageable. Dead last is the Nano 33 IoT, which breaks its SWD pins out to some small test pads on the bottom of the board. This requires either need to soldering wires to the pads or else setting up a pogo pin jig.

I'm not aware of any 3rd party boards platforms that have added support. I do keep an eye out for such things, but there are hundreds of them so I might well have missed one. It only requires adding a few lines to the platform configuration file for most platforms of boards that use an ARM Cortex-M core, but unfortunately Arduino has not documented this yet so it would be a matter of reverse engineering the changes they made to the "Arduino SAMD Boards" platform.

As for microcontrollers that don't have a Cortex-M core, such as the AVR architecture of the classic Arduino boards, that might be much more tricky to accomplish. The Arduino IDE 2.x integrated debugger is this nice VS Code extension:

As the name and description imply, it is targeted to ARM Cortex. However, there is an interesting discussion about extending its capabilities here:
https://github.com/Marus/cortex-debug/issues/13#issuecomment-381001391

As for supporting other MCUs that are not Cortex-M based - I'm not really opposed to the idea.

and a report from someone investigating the possibility of using it with the Uno here:
https://github.com/arduino/arduino-ide/issues/87

in0 many thanks for such an informed post, has got me going on the road to success I feel.
Oh Oh Oh but which MKR to go for, like being five years old again in a sweetshop :slight_smile:

You're welcome.

I'm a big fan of the MKR Zero simply because I always like to have a simple dev board with only the microcontroller and essential support circuitry. This allows me to focus my experimentation and learning on that microcontroller without having random accessories to increase the cost of the inevitable occasional "magic smoke" incident, perhaps cause interference with the microcontroller's basic functioning, or just distract me. The one extra on the MKR Zero is the SD card slot, but that really doesn't have much chance of increasing cost or causing problems so I'm not too fussed about it.

But once I get past the basics and start to want additional capabilities, it's wonderful that we have this nice range of MKR boards and even shields to select from. The MKR WiFi 1010 is the one I use second most after the MKR Zero.

But the MKR 1000 is my go-to MKR board when it comes to playing with the IDE's integrated debugger simply because I can so easily connect my CMSIS-DAP and J-Link debuggers to its SWD header. Other than that, I don't use the MKR 1000 so often because the ESP32-based "NINA" Wi-Fi modem technology is the more active area of development for Arduino than the WINC1500 modem technology used in the MKR 10000.

And the Nano 33 IoT is just a great compact form factor that allows for easy integration into finished projects.

I have been scheming to make a couple of pogo pin jigs so that I can easily debug or burn the bootloader on any of my MKR or Nano 33 form factor Arduino boards. I was hoping to do that this weekend but I ended up buying the wrong size of pogo pins. I might end up going ahead with it anyway tomorrow.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.