Skip to main content
Ephraimoved
Associate III
August 25, 2023
Question

STM32CubeIde COMPILER

Dear Sir,

A project written for STM32U585 reaches the size 900 k bytes.

Trying to lower the size , I am tryin to use properties.

MCU GCC C compiler -> Optimization

Trying to set Optimization level to optimize most  to -Q3 

the property of Optimization level is back to None (-Q0).

 

Please Advise.

    This topic has been closed for replies.

    6 replies

    ST Technical Moderator
    August 25, 2023

    Hello @Ephraimoved 

    Thank you for posting.

    Could you please provide the STM32 Cube IDE version.

    Thanks.

    Mahmoud.

     

    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.
    Ephraimoved
    Associate III
    August 27, 2023

    Hi

    1.12.1

     

    MM..1
    Super User
    August 27, 2023

    Be care if you click on file yu change only one file optimize level. Click on project and try...

    And optimize is O not Q

    And when your previous optimize level is size, then O3 dont get you most super efect. You need optimize your code data system or replace MCU to 2M

    TDK
    August 25, 2023

    Perhaps you changed build configurations, or didn't hit Apply. This is a per-configuration setting.

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