-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
"Upload" also does a build/verify #2103
Comments
Hi @marcusobrien. Thanks for taking the time to submit an issue.
Because Arduino IDE is designed to be friendly to new users. Having a requirement to manually trigger a separate "Verify" operation after any change to the sketch and sketch dependencies before doing an "Upload" operation would make it significantly less friendly to new users, many of whom would end up being confused after forgetting to do that and uploading a binary that doesn't match their sketch code. In return, separating the two operations would only benefit users in the relatively rare use case of using Arduino IDE to deploy a sketch to multiple boards of the same model.
That binary might be outdated. The build phase of the upload ensures that the binary always matches the current sketch code and its dependencies. The build system caches the compilation output, so the full sketch program is only compiled the first time and when one of the cached objects has been made outdated by a change to the source. There is work in progress to make these subsequent builds more efficient:
Discussion of these subjects is off topic for this issue tracker. I'll be happy to answer your questions if you make a post on Arduino Forum: https://forum.arduino.cc/c/software/ide-2-x/93
You can use Arduino CLI. Unlike Arduino IDE, since Arduino CLI is a tool for advanced users, the Alternatively, you can use the upload tool of your board (e.g., esptool) directly to upload the binary. Because their command line interface enables use in scripts and automated applications, these tools will be much more appropriate than Arduino IDE in the use case of deploying a binary to multiple of the same model board. We will not add such a capability to Arduino IDE (#333). If you would like assistance with using Arduino CLI, esptool, etc., you are welcome to post on Arduino Forum. |
Added question to Arduino Forumas requested, even though IMO its excessively pedantic not to just answer it here: https://forum.arduino.cc/t/in-aide-2-1-how-are-the-4-upload-widgets-different/1140799 |
Describe the problem
There are 6 sketch build and upload buttons in the Arduino 2 IDE.
Toolbar Verify Button - Builds the sketch
Toolbar Upload Button - Builds the sketch, then uploads to device
Menu Bar Sketch Menu - Verify/Compile MenuButton - Builds the sketch
Menu Bar Sketch Menu - Upload MenuButton - Builds the sketch and then uploads to device
Menu Bar Sketch Menu - Configure and Upload MenuButton - ??
Menu Bar Sketch Menu - Upload Using Programmer MenuButton - Builds the sketch and then uploads to device
To reproduce
Expected behavior
Arduino IDE version
2.1.0
Operating system
Windows
Operating system version
10
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: