-
Notifications
You must be signed in to change notification settings - Fork 1k
Arduino IDE 2.x Debug feature support #1896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have just found this interesting thread - https://www.stm32duino.com/viewtopic.php?f=18&p=10740 by @luca_stm32 . I adapted this method to my Nucleo F446RE as follows on the same Debian 11 system:
In Arduino IDE 2.0.3 at first I have installed Arduino SAMD Boards (32-bits ARM Cortex-M0+) from Board Manager.
And as the result I can debug the program: |
Hi @N0rbert |
Unfortunately, we do not succeed to reproduce the setup. My guess is the update of arduino-cli prevent to have it working. |
We met some issues/restrictions linked to Arduino IDE 2 which does not help to easily release that:
Not an issue for this one but linked to debug: |
Is your feature request/improvement related to a problem? Please describe.
Yes, it is related to debugging problem. I'm unable to debug simple Blink.ino program on Nucleo F446RE board. Arduino IDE 2.0.3 says "Debugging is not supported by 'Nucleo-64'".
Steps to reproduce:
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
as additional board URL for stm32duino.Pressing Debug → Start Debugging open empty template for launch.json instead of normally preconfigured and reproducible file.
It is unclear what user should write in the fields on launch.json file
to get OpenOCD working with STM32.
Describe the solution you'd like
Arduino IDE 2.x detects preconfigured launch.json for well known and mature stm32duino framework.
Debugging is possible using OpenOCD software and embedded ST-Link hardware.
Describe alternatives you've considered
The debugging of STM32F446RE on Nucleo-64 F446RE is actually possible using VSCode with vscode-arduino, cortex-debug and marus25.cortex-debug-dp-stm32f4 extensions by
openocd
from Debian repository andSTM32F446x.svd
file from marus25.cortex-debug-dp-stm32f4 extension.Additional context
The current behavior was observed using latest Arduino IDE
(Version: 2.0.3 ; Date: 2022-12-05T09:27:52.215Z ; CLI Version: 0.29.0 [76251df9] ) and stm32duino 2.3.0.
This issue was originally filed at arduino/arduino-ide#1760 .
The text was updated successfully, but these errors were encountered: