2018-11-08 02:51 AM
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
Solved! Go to Solution.
2018-11-09 07:06 AM
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
2018-11-08 03:47 AM
2018-11-09 05:49 AM
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.
2018-11-09 07:06 AM
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
2024-05-03 04:56 AM
Where can I find this setting?
I'm using CubeMX Version 6.11.0.
Every time I generate code for CubeIDE, the optimization setting is reset to -Ofast, even in the Debug profile.