It will be great with guide for how to use the Debugger IDE 2.3 with Mbed and also NANO ESP32.
Hi @andre_alm10. Thanks for your suggestion.
I agree this would be a valuable addition to the documentation.
Is there a specific Mbed OS core-based board you are interested in using the debugger with? I might be able to provide some guidance here that will serve until such time as a formal guide is published.
As was mentioned in the 2.3.0 release announcement:
I'll provide instructions you can follow to install Arduino IDE 2.2.1:
-
Click the following link to open the page for the 2.2.1 release in the Arduino IDE GitHub repository:
Release 2.2.1 · arduino/arduino-ide · GitHub -
From the list of download links under the "Assets" section of the page, click the link with the name:
- If you want the installer package: arduino-ide_2.2.1_Windows_64bit.exe
- If you want the "MSI" package: arduino-ide_2.2.1_Windows_64bit.msi
- If you want the "ZIP" package: arduino-ide_2.2.1_Windows_64bit.zip
ⓘ If you aren't sure which one you need, use arduino-ide_2.2.1_Windows_64bit.exe
-
Wait for the download to finish.
-
Install Arduino IDE from the downloaded file as you would normally do.
When using Arduino IDE 2.2.1, you will find that Arduino IDE periodically shows an "Update Available" dialog to offer you an update to the newer version of Arduino IDE. You must not accept these updates until after you see that a new version of the "esp32" boards platform has been released.
There is already a guide for using the Arduino IDE 2.2.1 debugger with the Nano ESP32 board:
https://docs.arduino.cc/tutorials/nano-esp32/debugging/
Once the new release of the "Arduino ESP32 Boards" platform comes out, you will be able to use that same guide with Arduino IDE >=2.3.0.
Hello, Mbed, Arduino NANO 33 BLE is the one im using right now. Im using MacOS.
Oops. I made the unwarranted assumption you were using Windows. The instructions for installing Arduino IDE 2.2.1 on a macOS machine:
- Click the following link to open the page for the 2.2.1 release in the Arduino IDE GitHub repository:
Release 2.2.1 · arduino/arduino-ide · GitHub - From the list of download links under the "Assets" section of the page, click the link with the name "arduino-ide_2.2.1_macOS_64bit.dmg".
- Wait for the download to finish.
- Install Arduino IDE from the downloaded file as you would normally do.
OK, great. I'll provide some general instructions:
- Connect a debug probe to the SWD pins on the test pads on the bottom of your Nano 33 BLE board:
The supported debug probes:- Any CMSIS-DAP-compliant probe
- Black Magic Probe
- Segger J-Link1
- STMicroelectronics ST-LINK
- Connect the debug probe to your computer with a USB cable.
- Power the Nano 33 BLE board (can be by connecting it to your computer with the USB cable) if the debug probe doesn't provide power.
- Open the Arduino IDE Boards Manager.
- Scroll down through the list of platforms until you find "Arduino Mbed OS Nano Boards".
- Verify that you have version 4.1.1 or newer installed.
ⓘ Debugger support was added in version 4.1.1 of the platform, so it will not be usable with older versions. - Open the sketch you want to debug.
- Select Tools > Board > Arduino Mbed OS Nano Boards > Arduino Nano 33 BLE from the Arduino IDE menus.
- Enable Sketch > Optimize for Debugging in the Arduino IDE menus.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to finish successfully.
- Select the type of debug probe you are using from the Tools > Programmer menu.
- Click the "Start Debugging" button on the Arduino IDE toolbar.
- Wait for the "DEBUG" panel to open at the left side of the Arduino IDE window.
Footnotes
- Some additional configuration will be required if using the J-Link. If you are using this probe and require assistance, let me know and I'll provide instructions.
Hello, thank you very much.
I have ordered "Lucky DRG WL CMSIS DAP".
I hope it will work. Looks good anyway. ![]()
Very cool!
I don't have experience with that particular debug probe, but I've had good luck with several others.
Fortunately we have this standardized and widespread CMSIS-DAP protocol that allows a variety of debug probes to be used with a variety of boards so we aren't locked in to a single proprietary probe for each target, priced out of the reach of the average hobbyist or student. You will likely find that you are able to use the same probe with other boards that are common in the Arduino ecosystem.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
