Hello,
I am trying to use the imx8mp's cortex M to create a PWM output for working with the ws2812b LEDs.
The LEDs require a faster clock source than the default, and after checking the clock source possibilities I've found that setting:
pwmConfig.clockSource = kPWM_HighFrequencyClock;
works for the required rates.
I encountered an issue with this clock source that the interrupt no longer triggers when the reload triggers (this is taken from the driver_examples/pwm project).
To be more precise, the interrupt triggers twice at the beginning, then never again, and at the two times that it does, it's not at the expected points where the counter period is complete.
to reproduce this, just take the example and set
pwmConfig.clockSource = kPWM_HighFrequencyClock;
right after getting the default configuration in the main function.