Hello @sanjay25,
Please verify that bit 15, labeled “DBGEN,” in the Control 2 Register is set to 1. This setting ensures that the PWM operates in debug mode. For more details about this bit, refer to section 54.8.4 of the RM.
Additionally, there is an example that demonstrates PWM implementation using FlexPWM in Zephyr. The example is called “PWM LED” and can be found in the MCUXpresso extension for VS Code, which could be helpful.
Habib_MS_0-1762988466669.png
BR
Habib