Hi Everyone,
I recently discovered that Arduino IDE 2 now includes a debugging option, which I think is a fantastic update. I'm currently using VEGA ARIES boards with Arduino IDE. These boards lack an on-board debugger, so we use the x-modem protocol for uploading code. Consequently, the direct upload button doesn't work when using IDE 2. Instead, we have to use the "Upload Using Programmer" button to upload code.
I'm wondering if there's a way to configure the Debugger button to function as the direct upload button. Has anyone figured out how to do this or know if it's possible?
Any assistance would be greatly appreciated. Thank you!
Hi @himanshu_diwane. The Arduino boards platform framework is very flexible. Although I don't know the details of your specific upload approach, I think there is a good chance that you can get the Upload button working for your board with enough perseverance and this will be much more intuitive for the users of your platform.
Just study the Arduino Platform Specification very carefully and you'll probably discover the solution:
https://arduino.github.io/arduino-cli/latest/platform-specification/
The debugging component of the framework is actually less flexible (because it is GDB-specific rather than tool-agnostic) so I think that any solution you found for misusing Debug button to trigger an upload would probably be applicable to the Upload button as well. Arduino IDE 2.x will always initialize the debugger when you click the Debug button, regardless of the platform configuration so it would be quite hacky regardless.
1 Like