cancel
Showing results for 
Search instead for 
Did you mean: 

Default optimization level for a project created by MXCube.

Pevy.Andy
Associate III

I have a project that is created by Cube for the Keil compiler.

The MCU is the STM32L486VG family.

The default optimization level in that project is set to -O3 but I'd like it to be -O0.

I cannot see where the default value gets set. I am assuming that it is in Cube as it reverts to O3 whenever I regenerate the project.

Can anybody enlighten me please ??.

Thanks,

Andy

1 ACCEPTED SOLUTION

Accepted Solutions
Houda GHABRI
ST Employee

Hi @kurta999​ ,

Thanks for your feedback.

As said by Amel , for this optimization , it is expected to be settable via STM32CubeMX in 5.1.0 version.

Regards,

Houda

View solution in original post

3 REPLIES 3
Amel NASRI
ST Employee

Hello @Community member​ ,

A similar issue is already reported in https://community.st.com/s/question/0D50X00009bLP0eSAG/adc-init-bug-with-optimization-o1-stm32l4.

It is tracked internally and Optimization will be settable from STM32CubeMX GUI soon. Stay tuned, waiting for STM32CubeMX versions.

-Amel

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.

Houda GHABRI
ST Employee

Hi @kurta999​ ,

Thanks for your feedback.

As said by Amel , for this optimization , it is expected to be settable via STM32CubeMX in 5.1.0 version.

Regards,

Houda