i will try with the resistor at gate.

I am using HPWM that is supposed to be on all the time the device is on... it is like the first part of my code.

Appart from that i never use HPWM off or something like that, but it is true that a cide BUG could be guilt for this behaviour..... As i said i am usin HPWM switching at 4000 with dutty 20.

Would there be any other idea? Would a NPN transistor like tip31 work better?

thanks

DJC