cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_Programmer_CLI.exe write file with space in path

CThie.1
Associate II

Hi,

I'm using STM32CubeProgrammer CLI (2.13.0).

I'm trying to write a file to my device using this command :

"C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -C port=SWD mode=UR -vb 1 -e all -w "%firmware%" 0x08020000 -V -w "%bootloader%" 0x08000000 -V

I get this error :

Warning: Wrong file path to be downloaded: "g:\.shortcut-targets-by-id\***\yyy"
Error: The download command you trying to perform (-w "g:\.shortcut-targets-by-id\***\yyy" "firmwares\***\yyyy\zzz\firmware.hex" 0x08000000) is missing the filePath to be loaded or it has a wrong extension, please note that the supported extension are .bin, .hex, .srec, .s19 .elf, .stm32, .ext2, .ext3, .ext4, .vfat, .ubi, .jffs2, .img and .tsv files.

I understand that the CLI parsed the firmware file path, which contains spaces, but I don't understand why as I put double quotes arround the %firmware% variable.

Can you help me solving this issue ? Is there a way of forcing not to parse or converting the path in a way the CLI understands it?

10 REPLIES 10

And Pavel's idea of copying this to a shorter more normative name, in say the local %TEMP% directory is not possible/working?

Is this some virtualized drive path?

Does a COPY in a script/batch file find it?

Parser does seem to be broken, and lack robustness..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..