cancel
Showing results for 
Search instead for 
Did you mean: 

PWM problem

ennioaloisini
Associate III
Posted on May 27, 2014 at 19:17

Dear all,

I have tested the pwm on the STM32F429 EVAL board. It seems all ok.

Then I have seen with oscilloscope that with low values of duty cycle from 1% to 20% the pwm works for a while then stops and then restarts.

With higher values, the stop period became shorter and then at 20% of duty cycle the pwm became continuos without stops.

What could be happened?

Let me know!

Best regards

#basic-debugging
2 REPLIES 2
Posted on May 27, 2014 at 19:27

Apparently it's

http://www.wikihow.com/Play-Pin-the-Tail-on-the-Donkey

day....

Does this happen with All pins and All timers, or some in particular?'

How are you programming this?

What else does your code do?

Do you have some code modulating the pin? IRQ/DMA

Is there some other device conflicting the pin?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jpeacock2399
Associate II
Posted on May 27, 2014 at 21:20

works for a while then stops and then restarts.

In other words the processor is resetting...sounds like stack overflow or some other bug that takes a while to crash the CPU.  Do you enable and trap all the faults?