Programmer on Linux fails with: "Error: flash loader cannot be loaded"
- August 25, 2025
- 2 replies
- 735 views
Hey,
I'm trying to flash some boards, same as i've done thousands of times with this PC and ST-Link, but Cube Programmer does not load the FlashLoader properly. I'm not using a custom loader or anything, just the default loader for my STM32F051 boards. I'll attach the logs below.
I can rule out a defective ST-Link since it happens with other ST-Links as well and the boards are functional as well. A colleague is able to flash them without issues, but using the same ST-Link than him i cannot on my System. I am also able to use the ST-Link normally for flashing and debugging through probe-rs, it just malfunctions in Cube Programmer.
It is also not a problem with option bytes as we never set them and all of them are in the default state, i can also confirm this in Cube Prog.
I have used STM32CubeProgrammer v 2.19.1 and have since upgraded to 2.20.0 without success. The ST-Link was running Firmware Version V3J16M7B5S1, which i have upgraded to V3j16M8B5S1, again without success.
My System is running on Arch Linux and i've installed CubeProgrammer through the AUR package (https://aur.archlinux.org/packages/stm32cubeprog). Any help on this would be greatly appreciated since flashing devices is something i need to do regularly for my job and CubeProgrammer should be a "just works" in my opinion.
Error is:
"Error: flash loader cannot be loaded. FlashLoaderPath = /opt/stm32cubeprog/bin/FlashLoader/0x
