I have configured a PWM for a display backlight. It works fine when not debugging. However, while debugging, if a breakpoint is hit or I place a breakpoint in the code, the PWM output goes low and the backlight turns off. I have verified this on the PWM output pin.
I am using an MIMXRT1052 controller with Zephyr RTOS. I also tried setting the pwm_a (FLEXPWM4_PWMA0, which I am using) fault state to 01, but I still encountered the same issue.
Has anyone else faced this issue?