cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to flash with STM32CubeProgrammer

SimonHuwyler
Associate II

Hi,

I just installed STM32CubeProgrammer v2.17.0 on Linux.

When I connect to the board (tried with several different ones), I get the following error;

flash loader cannot be loaded. FlashLoaderPath = /home/[yadayada]/bin/FlashLoader/0x

I can read the flash, I can do everything, with the exception of flashing. This fails.

I first thought it might be a truncated log message. But when I just copied any of the loader files and gave it the file name "0x", I didn't get the error message. So it really looks for a file named "0x". It looks like in the code, the assembly of the file name (all the files match the pattern 0x*.stldr)

 

I tried to do an software update, but this also fails: "The updater package on server is corrupted"

 

 

26 REPLIES 26

I have tried removing the file and it does not work. The only way to get this to work is to rename the correct loader file to 0x.

I am on an Arch based linux distribution. 

Sme behaviour here both on Arch an Ubuntu

This issue only occurs on Linux. I'm currently using Fedora 43, and it's November 2025, but this issue still hasn't been resolved. The same issue occurs on v2.19, v2.20, and v2.21.

This worked for me on 2.19. Can't find an "Accept as Solution" button. 

wimalopaan
Associate II

V2.21 still has this problem. 

Workaround: using symlink.

Is there any progress regarding this issue???

Cubeprogrammer v2.21. Bug still present.

 

I installed the 2.2.1 version into /opt/STM32Cube/STM32CubeProgrammer.

Attached a STLINKv3 to my Ubuntu 25.10 PC.

Connected the STLINKv3 to a board with a STM32f105 processor.

Pressed Connect and the it was identified

 

Opened STM32CubeProgrammer and pressed Connect.

The chip is properly identified but I get an error messages saying the flash loader could not be found, pointing to a "0x" loader. I assume it should be the 0x418 but it is not filled in.

Loading does not work.

DanielNslund_0-1766046487634.png

 

Kouthair
ST Employee

Hello everyone,

We are currently investigating this error (internal ticket number: 224132) as it has been reported in the following threads:
Ubuntu 25.10 - STM32CubeProgrammer : Flash Loader ... - STMicroelectronics Community
FlashLoader not set correctly - STMicroelectronics Community

For now, you can create a copy of the corresponding file from "0x<your_device_id>.stldr" and rename it to "0x" in the "STM32Cube\STM32CubeProgrammer\bin\FlashLoader" and try reconnecting again.

PS: Ticket number: 224132 is an internal tracking number and is not accessible or usable by customers.


Kouthair