2021-09-22 08:27 PM
This issue had been brought up almost a year back, and there looks like there has not been a fix to the libraries?
So basically, after code generation with STM32CubeMX, under MX_COMP1_Init,
hcomp1.Init.WindowMode = COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON;
but under MX_COMP2_Init,
hcomp2.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
which effectively resets window mode operation of the 2 comparators, window mode only works when only COMP2 is set to window mode or both COMP's are set to window mode as there will be no reset of window mode.
I hope the issue can fixed sooner or later