Skip to main content
Associate
October 3, 2026
Question

Request for 32L152CDISCOVERY default firmware

  • October 3, 2026
  • 4 replies
  • 42 views

My board does not have the default firmware anymore and I do not have a backup of it either.  I have the source code and the HAL driver and have tried for hours to get the code to compile.  I get many errors for various HAL header files and the source does not include a HAL config file.  Is it possible to get the compiled default firmware as it is for various other Discovery boards?

4 replies

jwptrekAuthor
Associate
October 3, 2026

I was attempting to use STM32CubeIDE 2.2 to compile and most instructions I found seem to refer to other versions that look very different.

MM..1
Super User
October 3, 2026

No compiled elf isnt in package, but seems you have STSW 072, then use right steps compile it without trouble .
Unzip all pack , go into right folder and double click .project file. Build and flash. If error showed post here screens or log...

MOBEJ
ST Employee
October 5, 2026

Hello ​@jwptrek ,

 

could you please share more details about your setup?
For example: which IDE/toolchain you use, which firmware version, and the exact compile errors you get.
Also, please confirm whether you are trying to rebuild the default demo firmware or just need the original compiled file.

Br

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.
jwptrekAuthor
Associate
October 5, 2026

I would prefer just the compiled file.  I was using the STM32CubeIDE 2.2 to try to compile.  I am not on the same PC at the moment so I will have to retrieve the errors later.  To summarize though, first I had errors that stdint.h wasn’t included so I added the include to the hal config h file.  Then, I got mainly errors in the HAL GPIO header stating that there were missing typedefs even though they were in the h file.