MCU's like the ESP32-S3 popup saying the JTAG/Serial over USB is installed...
I'd love to be able to debug in Arduino 2 with it, I've tried it briefly but it showed in the top info bar "Debugging is not supported on this device...."
MCU's like the ESP32-S3 popup saying the JTAG/Serial over USB is installed...
I'd love to be able to debug in Arduino 2 with it, I've tried it briefly but it showed in the top info bar "Debugging is not supported on this device...."
Hi @SarahC_1.
There are two requirements for support to be available for use of the Arduino IDE integrated debugger with the ESP32 boards:
I don't know about the former. 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 cores, which the ESP32 does not use. 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.
As for the latter, at least for the platforms of boards that use an ARM Cortex-M core, the work is very minimal. Unfortunately Arduino has not documented the process, but it is demonstrated in the open source configuration files of the official "Arduino SAMD Boards" platform. You can see the only changes that were required here:
https://github.com/arduino/ArduinoCore-samd/commit/cf72acfe1b74c2e00d77dcba65f664bd09582c65
and here:
https://github.com/arduino/ArduinoCore-samd/blob/1.8.13/platform.txt#L129-L140
Despite the ease of doing so for the popular ARM Cortex-M microcontrollers, 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.
For now, if you want to use the debugger you should use one of the boards supported by the "Arduino SAMD Boards" platform.
The Arduino 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. Least convenient (but a very nice board otherwise) 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 soldering wires to the pads or else setting up a pogo pin jig.
Thanks for the detailed update.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.