AnsweredAssumed Answered

Building 0s/03 doubles timer speed?

Question asked by MWP on Jan 24, 2013
Latest reply on Jan 31, 2013 by MWP
Hi all,

My TIM3 timer is setup to run at 10Khz which it does when i compile with -O0.
When i compile with -03 or -Os, the timer speed increases to 20khz.
All other build configs (gcc, linker, libs, etc) stay the same.

The compiler is "arm-none-eabi-gcc (Sourcery CodeBench Lite 2012.03-56) 4.6.3".

Can anyone hazard a guess as to why this might happen?
Ive looked at everything i can think of with no result.