Skip to main content
SimonF
Senior
November 19, 2020
Solved

[BUG : STM32CubeProgrammer 2.6.0] Space in "Program Files" makes external loader loading failing

  • November 19, 2020
  • 21 replies
  • 4687 views

Hello,

I cannot use correctly TouchGFX Designer. When I use "run Target", when arriving at the step of stmCubeProgrammer, I have this issue :

...
-------------------------------------------------------------------
 STM32CubeProgrammer v2.6.0 
 -------------------------------------------------------------------
 
 Error: External loader c:\program cannot be loaded.
 Error: External loader files\stmicroelectronics\stm32cube\stm32cubeprogrammer\bin\externalloader\n25q128a_stm32469i-disco.stldr cannot be loaded.
 ST-LINK SN : 066EFF3530384E5043221930
 ST-LINK FW : V2J36M26
 Board : 32F469IDISCOVERY
 Voltage : 3.24V
 SWD freq : 4000 KHz
 Connect mode: Normal
 Reset mode : Software reset
 Device ID : 0x434
 Revision ID : Rev A
 Device name : STM32F469xx/F467xx
 Flash size : 2 MBytes
 Device type : MCU
 Device CPU : Cortex-M4
....

As you can see the path for the external loader path is splited in 2 parts because of the space in "Program Files". It seems that I am the only one with this issue ? I did not have this issue with the previous release of TouchGFX.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi @Svenn Dahlstrom​ ,

CubeProgrammer team is fixing this, but in the meantime you can either use 2.5 and be happy, or.... i'm publishing a known issue for cubeprogrammer 2.6 to make it work with TouchGFX makefiles (which works since its from command-line as you mention).

/Martin

21 replies

Martin KJELDSEN
Principal III
November 30, 2020

Hi guys, i'm reporting this to the cubeprogrammer team, thanks for the reports!

/Martin

Svenn Dahlstrom
Associate III
December 17, 2020

Upgraded to STM32CubeProgrammer V2.6.0 yesterday (from V2.5.0) and now I have the same problem.

Using the STM32CubeProgrammer it works fine but from CLI is where it fails.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
December 17, 2020

Hi @Svenn Dahlstrom​ ,

CubeProgrammer team is fixing this, but in the meantime you can either use 2.5 and be happy, or.... i'm publishing a known issue for cubeprogrammer 2.6 to make it work with TouchGFX makefiles (which works since its from command-line as you mention).

/Martin

Martin KJELDSEN
Principal III
December 17, 2020

The General solution is to call the cli.exe directly from the bin/ folder and supply a relative path to the stldr file. You should be able to find the spot in the gcc/Makefile where this call is made.

Fix is like:

@cd "$(st_stm32cube_programmer_bin_path)" && ./$(stm_stm32cube_programmer_exe) -c port=SWD -d $(application_path)/$(binary_output_path)/target.hex -el $(stm32cubeLoader_relative_path) -hardRst
 

/Martin