Skip to main content
CBerg
Senior II
September 2, 2024
Solved

STM32Cube Programmer - invalid ELF-file

  • September 2, 2024
  • 2 replies
  • 1641 views

Hi folks,

I have a Projekt on an STM32G431CBU. The programm runs without erros in DEBUG mode as well as in RELEASE Mode, when I flash it from the CubeIDE. For me this means the binaries are OK.

But if I want to flash the ELF-Files to the MCU with Cube Programmer I get an error message, saying that "xxxxx.ELF" is not a valid ELF file?!

I am using CubeIDE Version: 1.14.0

and Cube Programmer 2.14.0

 

Has anyone experienced similar issues and maybe a solution for me?

 

Thanks and have a good one!

Chris

Best answer by mƎALLEm

Try the latest version of CubeProgrammer 2.17.0

2 replies

Tesla DeLorean
Guru
September 2, 2024

What do tools like objdump or objcopy report for this .ELF file?

Isn't there a much newer version of Cube Programmer? Check release notes if issues related to this were addressed.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
mƎALLEm
mƎALLEmBest answer
Technical Moderator
September 2, 2024

Try the latest version of CubeProgrammer 2.17.0

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
CBerg
CBergAuthor
Senior II
September 2, 2024

upgrading to 2.17 solved the issue