cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer does not work with the STM32L-discovery

Elvys
Visitor

Hello,

I inherited an old software project from a colleague who retired. (He originally worked on Windows XP.)
The software was designed to run on an STM32L-Discovery board.

Since some packages need to be maintained, I want to build the software on a Linux machine (Ubuntu 24.04.4 LTS). I managed to create a CMake project that successfully builds the binary for the target.

The issue I’m facing now is that I can’t flash the binary to the target hardware because STM32CubeProgrammer displays the following message:
“Error: Old ST-LINK firmware version. Upgrade ST-LINK firmware.”

I also tried on a Windows 10 machine and got the same result.

On the official board page [1], there’s no mention of STM32CubeProgrammer.

I’ve been searching for a solution since this morning, but I haven’t found the right hint yet.

Can anyone confirm whether CubeProgrammer is unable to write to this Discovery board?
Can anyone recommend a programmer I can use to flash the binary? (I know a few are listed in the documentation, but I don’t have experience with those.)

Thank you in advance.

Regards,


Elvys


[1] https://www.st.com/en/evaluation-tools/stm32l-discovery.html#documentation

3 REPLIES 3
AScha.3
Super User

Hi,

so just do the update.

as it tells you : Upgrade ST-LINK firmware.

-> in IDE menu : Help -> stlink upgrade 

If you feel a post has answered your question, please click "Accept as Solution".

Hello,

Thank you @AScha.3 . I tried that, but it didn’t work. However, I’ve found a solution:

Both the Ubuntu and Windows 10 systems are running as virtual machines on my Windows 11 host.
I’m not sure why, but during the update process, the device disconnects and takes too long to reconnect, causing the update mechanism to time out.

When CubeProgrammer runs directly on the host, the update works fine.

I hope this helps someone.

Bye,


Elvys


@Elvys wrote:

I hope this helps someone.


To make sure that they can find it, please mark the solution:

Help others to solve their issues

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.