I have the weirdest problem... I'm trying to make a sinusoidal brushless controller based on the AVR447 app. note. Everything is ok, i mean the motor works but the MCU doesn't always start ok. Sometimes it starts sometime it doesn't. I have to remove and reapply power a couple of times until it starts. When it starts, everything works just fine. I've tried everything, i've even changed the MCU and i've built another circuit with new components. Every time it has the same behaviour.
Any help is appreciated...