cancel
Showing results for 
Search instead for 
Did you mean: 

This is on the STM32L053R8T6 Nucleo Board. Is there an error on COMP1&2 working in Window Mode?

Hasnaat
Associate

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

0 REPLIES 0