Open
Description
Describe the problem
The upload commands supports a binary file upload with a -i, --input-file string
argument.
Currently, when called with a .hex
file, it fails because a missing .bin
file on the same folder:
PS C:\> arduino-cli upload -b STMicroelectronics:stm32:GenL0 -i test.hex
Selected interface: swd
Error test.bin does not exist!
Usage: stm32CubeProg.sh [OPTIONS]...
Mandatory options:
-i, --interface <'swd'/'dfu'/'serial'/'jlink'> interface identifier: 'swd', 'dfu', 'serial' or 'jlink'
-f, --file <path> file path to be downloaded: bin or hex
Optional options:
-e, --erase erase all sectors before flashing
-o, --offset <hex value> offset from flash base (0x8000000) where flashing should start
Specific options for Serial protocol:
Mandatory:
-c, --com <name> serial identifier, ex: COM1 or /dev/ttyS0,...
Optional:
-r, --rts <low/high> polarity of RTS signal ('low' by default)
-d, --dtr <low/high> polarity of DTR signal
Specific options for DFU protocol:
Mandatory:
-v, --vid <hex value> vendor id, ex: 0x0483
-p, --pid <hex value> product id, ex: 0xdf11
Failed uploading: uploading error: exit status 1
Please fix it so the .bin
file is not required (the .hex
file contains all the binary data + the addresses to program it onto..).
Also the stm32CubeProg.sh
error message seems to support the .hex
file- -f, --file <path> file path to be downloaded: bin or hex
.
To reproduce
See example above.
Expected behavior
Successfully upload a .hex
file without a .bin
file by its side..
Arduino CLI version
arduino-cli Version: 1.1.1 Commit: fa6eafc Date: 2024-11-22T09:31:38Z
Operating system
Windows
Operating system version
Windows 11
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