2025-12-23 2:24 AM
Hi,
I have a strange problem on an STM32L051C8 with the comparators enabled in window mode.
If I put the system in stop about 20 seconds after powering the microcontroller, the current draw is about 250 uA. If I then exit the stop mode with a soft reset and put the system back to stop after 20 seconds (without removing the power), the current draw is 0.42 uA.
The comparator is initialized in ultra_low_power mode with interrupt enabled to exit the stop mode.
What can I look at?
Thanks