Potential bug on PWM driver when set with 100% pulse

  • Hi,

while developing a custom driver for the nRF54L15, using the PWM I have found a potential bug.

I have removed the custom driver and just enabled PWM shell and I can reproduce the bug typing this commands:

Here the debug watch data of the pwm_nrfx_0_data structure during the test.

Boot:

After: pwm nsec pwmd2000 0 50000 0:

(I would aspect the pwriod_cycles t be equal to 800).

After: pwm nsec pwmd2000 1 50000 0:

After: pwm nsec pwmd2000 1 50000 50000:

After pwm nsec pwmd2000 1 50000 100:

I hade basically this sequence of commands in my custom driver that is why I have found this issue.

I believe the period_cycles of the driver instance is not properly set when pwm is configured with 100% pulse...

We are on ncs 3.2.4 

Thanks,


andrea

Related