Open
Description
Describe the problem
I need to upload precompiled binaries but I am facing the following issue:
To reproduce
$ arduino-cli upload --port /dev/ttyUSB0 --fqbn Heltec-esp32:esp32:heltec_wireless_stick_lite_V3 --input-file /path/to/my/precompiled/files//lora_lte_node_V2.15_v1_40MHz.bin`
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--encrypt-files <address> <filename> [<address> <filename> ...]]
[--ignore-flash-encryption-efuse-setting] [--force]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: '/path/to/my/precompiled/files/lora_lte_node_V2.15_v1_40MHz.bootloader.bin'
Failed uploading: uploading error: exit status 2
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
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details
Metadata
Metadata
Assignees
Labels
Related to documentation for the projectRelated to documentation for the projectPerceived defect in any part of projectPerceived defect in any part of project