stm32f4xx-hal
stm32f4xx-hal copied to clipboard
PWM undefined behavior
Undefined behavior seems to occur when passing a period of 0 Hz to theset_period method in a PwmHz handle. If the method is called once passing a 0 Hz value, it refuses to get updated/recover with any new consecutive (non-zero) values.
This behavior occurred using the STM32F401RE Nucleo-64 board.