cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer 2.18.0 no longer works with path names containing a space

tom5
Associate

I wanted to update from STM32_Programmer_CLI.exe V2.10.0 to version V2.18.0, but the new version no longer works with path names that contain a space.

 
-c port=swd sn=49FF6F064877885229171667 --skipErase -w C:\Daten\C-Sharp\Testsystem\005933.XX TestFramework\Tests\Test51 007424 nSensHT\_TEST\Flash\007444.00 uC Software Bootloader D-nSens-HT2 V1.00.bin 0x08000000 -v --quietMode --verbosity 1
-------------------------------------------------------------------
STM32CubeProgrammer v2.18.0
-------------------------------------------------------------------
ST-LINK SN : 49FF6F064877885229171667
ST-LINK FW : V2J45S7
Board : --
Voltage : 1.76V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev A
Device name : STM32G0B0xx/B1xx/C1xx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0x92
Warning: Wrong file path to be downloaded: "c:\daten\c-sharp\testsystem\005933.xx"
Error: The download command you trying to perform (-w "c:\daten\c-sharp\testsystem\005933.xx" "testframework\tests\test51 007424 nsensht\_test\flash\007444.00" "uc software bootloader d-nsens-ht2 V1.00.bin" 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.

 


-c port=swd sn=49FF6F064877885229171667 --skipErase -w C:\Daten\C-Sharp\Testsystem\005933.XX TestFramework\Tests\Test51 007424 nSensHT\_TEST\Flash\007444.00 uC Software Bootloader D-nSens-HT2 V1.00.bin 0x08000000 -v --quietMode --verbosity 1

-------------------------------------------------------------------
STM32CubeProgrammer v2.10.0
-------------------------------------------------------------------
ST-LINK SN : 49FF6F064877885229171667
ST-LINK FW : V2J45S7
Board : --
Voltage : 1.76V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x467
Revision ID : Rev A
Device name : STM32G0B1xx/C1xx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M0+
BL Version : --
Memory Programming ...
Opening and parsing file: 007444.00 uc software bootloader d-nsens-ht2 v1.00.bin
File : 007444.00 uc software bootloader d-nsens-ht2 v1.00.bin
Size : 19.33 KB
Address : 0x08000000
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.357
Verifying ...
Download verified successfully
2 REPLIES 2
Aziz BRIGUI
ST Employee

Hello @tom5,

This not a regression but a new implementation.

For newer versions of STM32CubeProgrammer, paths containing spaces should be put in quotes ("") like many other CLI tools.

This has been done to avoid other several issues like handling of consecutive spaces in paths (That is not handled properly in CubeProgrammer v2.10).

 

Aziz 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Aziz BRIGUI 

I already tried the ("") thing, but it didn't help. I actually think the problem is more with a (.) point.

 

 

C:\Daten>"C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=swd sn=49FF6F064877885229171667 --skipErase -w "C:\Daten\C-Sharp\Testsystem\005933.XX TestFramework\Tests\Test51 007424 nSensHT\_TEST\Flash\007444.00 uC Software Bootloader D-nSens-HT2 V1.00.bin" 0x08000000 -v --quietMode --verbosity 1
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.18.0
      -------------------------------------------------------------------

ST-LINK SN  : 49FF6F064877885229171667
ST-LINK FW  : V2J45S7
Board       : --
Voltage     : 1.76V
SWD freq    : 4000 KHz
Connect mode: Normal
Reset mode  : Software reset
Device ID   : 0x467
Revision ID : Rev A
Device name : STM32G0B0xx/B1xx/C1xx
Flash size  : 256 KBytes
Device type : MCU
Device CPU  : Cortex-M0+
BL Version  : 0x92

Warning: Wrong file path to be downloaded: "C:\Daten\C-Sharp\Testsystem\005933.XX"
Error: The download command you trying to perform (-w "C:\Daten\C-Sharp\Testsystem\005933.XX" "TestFramework\Tests\Test51 007424 nSensHT\_TEST\Flash\007444.00" "uC Software Bootloader D-nSens-HT2 V1.00.bin" 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.

 

Thomas