HRTIM TIMF Delayed Protection enabled despite disabled in config with LL driver on STM32G474
I encountered a bug in the initialization code for HRTIM generated by CubeMX in STM32CubeIDE.
Delayed Protection is enabled for HRTIM Timer F despite the "Delayed Protection Mode"="No Action" in the timer configuration. This does not happen for other HRTIM timers.
This error occurred in my project with STM32G474RBT6 in STM32CubeIDE 1.17 (CubeMX 6.13) but I reproduced this bug on a clean installation of STM32CubeIDE 1.19.0 (CubeMX 6.15.0).
All you need to do is set the LL driver for HRTIM and enable Timer F.
In the MX_HRTIM1_Init function in main.c, there is a function call:
LL_HRTIM_TIM_EnableDLYPRT(HRTIM1, LL_HRTIM_TIMER_F)
I solved it by calling the function LL_HRTIM_TIM_DisableDLYPRT(HRTIM1, LL_HRTIM_TIMER_F) in the following USER CODE block...
