Esp32 C3 PWM channels

I have tried ledc attach and detach when i need to use other pin. It work good but when i integrate it in esp now. I am facing issue in communication data delivery failed and some time motor not run and some time keep running