Skip to main content
PGump.1
Senior II
March 19, 2024
Question

STM32CubeIDE V1.15 ST-Link upgrade problem

  • March 19, 2024
  • 8 replies
  • 11688 views

Hi all,

I have a STM32C011 project. I am using a STMF0-Discovery as a ST-Link, as I have done many times before.

I have upgraded STM32CubeIDE to V1.15. It is asking me to upgrade the firmware in the ST-Link. Going through the upgrade process, it fails stating "Unexpected flash size for ST-Link micro. Don't know how to upgrade".

If I select No to the upgrade request, CubeIDE stops there...

I used STM32CubeProgrammer to upgrade the firmware in the ST-LInk, and STM32CubeProgrammer is happy to work with it.

But STM32CubeIDE V1.15 won't work with it!

How do I get it to work?

Thanking you
Pedro

This topic has been closed for replies.

8 replies

Pavel A.
March 19, 2024

I am using a STMF0-Discovery as a ST-Link

Do yourself a favor: get a new ST-LINKv3. 

 

PGump.1
PGump.1Author
Senior II
March 20, 2024

Thanks for your reply.

However, the STMF0-Discovery has multiple functions in this project.

Adding another module is not the solution I'm looking for.

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
Pavel A.
March 20, 2024

Then disable ST-Link version checking in CubeIDE to be able to debug the F0 board. (And  get a ST-Linkv3 for the STM32C0)

PGump.1
PGump.1Author
Senior II
March 20, 2024

@Pavel A. wrote:

Then disable ST-Link version checking in CubeIDE to be able to debug the F0 board. (And  get a ST-Linkv3 for the STM32C0)


Thank you for your reply, however, I clearly said -

If I select No to the upgrade request, CubeIDE stops there...

and

However, the STMF0-Discovery has multiple functions in this project.

Adding another module is not the solution I'm looking for.

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
Associate
March 20, 2024

I have been having the same issues; since then a lot of my programs can't flash onto the board and the behaviour of the ST-LINK is very weird. When I open up a program on debugger during the rare-times it does work there is no uart output and some programs when I flash fail 

Barber.Mark
Associate III
March 22, 2024

It seems V1.15 has more problems, i was working on a project the upgrade was ready i closed the project and did the upgrade. Then went back to my project. Now i cannot download my code for debugging, getting some very odd error message. Screen shot attached. I can still connect to the hardware using STM32CubeProgrammer no problem.

i would also suggest getting a STLINKV3. My old STLINKV2 will not upgrade under V1.15.

i was hoping some of the bugs and instabilities in the IDE would have been fixed now i cannot do my work. this i caused by upgrading.

mƎALLEm
ST Technical Moderator
March 22, 2024

Hello,

Try this workaround to unblock your situation until this issue get fixed in CubeIDE

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
PGump.1
PGump.1Author
Senior II
March 25, 2024

Hi,

I have tried the above workaround. Unfortunately it does NOT work! I get

Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
       package st-stlink-udev-rules-1.0.3-2.x86_64 is already installed

and the problem persists...

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
mƎALLEm
ST Technical Moderator
March 22, 2024
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
PHolt.1
Senior
March 25, 2024

Remember Cube IDE 1.15 also changes the GCC tools from whatever previous version to v12. That is known to produce that executable segment warning, but it could also make some code not run. I found that it produced 1k less binary code (on ~450k) so looks like the optimisation is better and that could break hardware timing. I am using -Og.

As I wrote elsewhere, there is no point in upgrading this stuff because you are just creating work for yourself and this will never end. Disable checking for updates in Cube.

 

Pavel A.
April 11, 2024

I found that it produced 1k less binary code (on ~450k) so looks like the optimisation is better

More likely, this is because of changes in the newlib library (scary!)

 

 

PGump.1
PGump.1Author
Senior II
April 12, 2024

@Pavel A.I think you'll find that this is not a Windows vs Linux issue. This issue is - someone at ST has, intentionally or unintentionally, removed the support for the debugger that I'm using...

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.