COMP1 HW or SW problem recovering from STOP2 mode
Hello everyone,
I discovered a problem with the STM32WLE5CCU6 using the comp1 on stop2 mode.
More specifically, when the debug is enabled on stop2 mode using the command HAL_DBGMCU_EnableDBGStopMode() the comp1 is working and I get all the peaks of the oscillation (see image 1). But when I make a single change, and disable the debug on stop2 mode, with the command HAL_DBGMCU_DisableDBGStopMode() the comp1 stops counting all the oscillation peaks (see image 2).
The yellow is the oscillation and the green is the external gpio output of the comparator (see Image 3)
I'm not sure if this is a hardware problem or software. Please make your tests and report back.
In the datasheet it isn't clear if on stop2 mode the comp1 data registers are retained, but from the results it seems that they do. Also I have tried to reinitialize the comp during stop2 exit but i get the same results.
Image 1
Image 2
Image 3
