Open
Description
Describe the problem
when I try to start debugger I get request 2 canceled on connection close
does not start debugger.
I can upload the sketch and it runs to output the position. I have not tested my sketch with encoders attached yet.
To reproduce
connect stlink v3 to arduino giga with ribbon cable. connect both to pc
open arduino ide. click on start debugging
I have attached the sketch
sketch_nov17a.zip
Expected behavior
I expected the debugger to start and then stop at the breakpoint I set on the first line of the setup routine.
Arduino IDE version
nightly build 11-30-23
Operating system
Windows
Operating system version
windows 11
Additional context
probably not required
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest nightly buildMy report contains all necessary details
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
kittaakos commentedon Dec 11, 2023
Thanks for reporting this issue.
I saw some internal documentation that it won't work. @umbynos, can you please help tell users what is (and will be (#2281)) supported? Thank you!
umbynos commentedon Dec 11, 2023
Hello @dav322.
Debugger support has been added in mbed core v4.0.10 but debugging leverage some features that are not available in the IDE2 yet. Debugging the Giga with the stlink will be a supported use case.
dav322 commentedon Dec 12, 2023
I would be happy using any debugger. Without debugging I can't use arduino ide. It is absolutely a requirement for a real development environment. I am already using 4.0.10 and it does not work.
kittaakos commentedon Dec 14, 2023
Please try with the nightly build and let us know if it's still the same: https://www.arduino.cc/en/software/#nightly-builds
We made some debugger changes (73b6dc4)
Unfortunately, I do not have the hardware to try it out.
dav322 commentedon Dec 14, 2023
to verify it is connected I clicked on tools -> get board info and it displayed

running this sketch
I can upload the sketch using the upload button and it displays following on monitor
When I set a breakpoint on Serial.begin line and click on start debugging I get following lines in gdb-server tab
launch.json was:
end launch.json
To verify the stlink / giga is working I started an empty project with STM32CUBEIDE.

Program loaded and stopped at first line of main
to make it run again with arduino ide I run this command after putting giga in boot mode.
a 2nd try had these log files showing it stopped. Clicking on step seemed to step into routines and follow code as expected.
debug console
victoryred commentedon Dec 17, 2023
kittaakos commentedon Dec 18, 2023
umbynos commentedon Dec 18, 2023
It seems it could be a problem related to an old bootloader, could you please try to update it? https://support.arduino.cc/hc/en-us/articles/7991505977116-Burn-the-bootloader-on-GIGA-R1-WiFi
victoryred commentedon Dec 18, 2023
kittaakos commentedon Dec 19, 2023
umbynos commentedon Dec 20, 2023
PR upstream to change request type: arduino/ArduinoCore-mbed#806
8 remaining items