Hi Pawel, On Thursday 19 December 2013 12:23:36 Pawel Suchanecki wrote: > [...] > but also occasionally (1 per hundreds of while loops) it beeps longer > than normally, basically up to next loop. > > How can I get this working? I need this for my project (the device is > going to be sent tomorrow to the client).
I think it's not defined what electrical level the PWM output pin has, when the software stops the PWM. At least such kind of failure we have seen on different platforms like i.MX SoCs. The only solution is to configure the pin to act as a GPIO with a well defined level when the PWM stops. And to reconfigure the pin to act as a PWM output, if the PWM is enabled again. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
