-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Misleading documentation for --input-file
flag of upload
command
#2832
Comments
Using
|
Thanks for your report @Kabouik.
Yes, this is definitely misleading. The documentation needs to be corrected: arduino-cli/internal/cli/upload/upload.go Line 75 in a2eebcd
Despite what the documentation claims, Arduino CLI does not necessarily upload the file at the path passed to the flag. What it does instead is extract two separate things from that path, which are then provided to the boards platform for use in the There is no provision in the Arduino boards platform framework for explicitly uploading a single binary file. The platform developers will configure their https://github.com/espressif/arduino-esp32/blob/3.1.1/platform.txt#L288-L289
When you compile a sketch for a board of the Unless the provided binary (or group of binaries) were specifically intended for use with |
--input-file
with arduino-cli upload
fails because it looks for a file name different from the one supplied--input-file
flag of upload
command
Thanks for the detailed answer and explanation. Just to elaborate on my usecase and why I was trying to upload precompiled binaries:The code was developed and tested with a text editor and plugins that manage everything Arduino-related, including compiling and uploading. This editor and plugins are not compatible with my OS, and I have my own habits with another editor anyway, so I ended up writing extra documentaiton in a fork for compiling and uploading using I can compile the code with |
@Kabouik maybe the
If you compile with the |
Describe the problem
I need to upload precompiled binaries but I am facing the following issue:
To reproduce
Note how the filename differs in the error and in the command I used. If I copy the file to a new name to add the missing "bootloader" part that
arduino-cli
expects (and keep the file with its original name alongside the new one too), then it tries to add this suffix again (i.e., "bootloader.bootloader") when I try to upload with the new name, or keeps failing to find a suitable file even if I try to upload with the old name.What am I doing wrong?
Expected behavior
The supplied binary filename should be used to upload to the board.
Arduino CLI version
Version: 0.35.3 Commit: 95cfd65 Date: 2024-02-19T13:24:24Z
Operating system
Linux
Operating system version
Debian 6.11.11 distrobox
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: