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"

 

 

23 REPLIES 23

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.