cancel
Showing results for 
Search instead for 
Did you mean: 

How to Optimize Code and Reduce Firmware Size in STM32 Project (Using STM32CubeIDE)

Vats-ab
Associate

Hello ST Community,

I am currently working on a motor control project using an STM32 microcontroller and STM32CubeIDE. I have noticed that the code size (firmware image size) is larger than expected, and I would like to reduce it as much as possible to fit within memory constraints and improve performance.

Are there recommended methods or best practices to optimize the firmware code and reduce its size?

 

At present, the firmware size is:

Vatsab_0-1750239346504.png

 

This discussion is locked. Please start a new topic to ask your question.
10 REPLIES 10
GMA
ST Employee

Hello all,

If the response does not meet your expectations, do not hesitate to open a new thread.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA