Question
GCC optimization -01 creates clocks problems (using Free
Hello world!
I'm working on a real-time synthesizer project since a few years :
- using STM32F427VG
- ST drivers V1.0.0 not HAL (I think HAL wasn't existing in the past)
Everything is working well with optimization -O0.
When I enable optimization (eg -O1) compilation is OK, but after flashing, the STM32 goes mad, clocks are completely wrong and are way to fast. Timers frequencies I configured are OK, but seems that the system core clock is wrong.
I tried to isolate the problem with
#pragma gcc push_options
#pragma gcc optimize (o0)
#pragma gcc pop_options But same result.
Have you run into similar problems?
