cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with PWM on TIM1 STM32F103VBT6

irekguzik
Associate II
Posted on September 16, 2010 at 17:42

Problem with PWM on TIM1 STM32F103VBT6

1 REPLY 1
Posted on May 17, 2011 at 14:07

To make matter worse my program works only at Level Optimization 3 on Keil. When I am using Level Optimization 0 it doesn't work. I think that the problem is located in StdLib. I attached the source code of this part when PWM is configured:

 

Chances are that changing the optimization effects your code, and not code pulled in by the linker from a static LIB file. While it might be convenient to blame the library, it's pretty mature at this point.

The part where you read the buttons and alter the PWM settings might be more enlightening seeing as that is where you are seeing odd behaviour. Try posting enough of the project that someone can actually try to build it. You can actually attach files to a post, rather than paste them inline.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..