Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Misleading documentation for --input-file flag of upload command #2832

Open
Labels
topic: documentationRelated to documentation for the project type: imperfectionPerceived defect in any part of project
@Kabouik

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月19日T13: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

No one assigned

    Labels

    topic: documentationRelated to documentation for the project type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /