cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L5 Stop2 and Comparator

svenifax
Associate

Hello,

 

I'm trying to enable the stop2 mode and using the analog comparators on STM32L5.

It seems that no interrupt is fired when turning the voltage in input+ at a higher leveln than input-. The same code work fine, when entering stop1 instead of stop2.

There's also no problem when running the RTC or waking up via GPIO event if the compartor is not initilized.

Hardware:

  • Nucleo STM32L5 Nucleo-144 board (MB1361)
  • Current is measured on Header IDD

Software:

  • Clocks: LSI as source for RTC and MSI @ 1 MHz as system clock (MSI is also configured as wakup source clock)
  • GPIOs: All pins are configured as analog inputs without pull
  • Comparator is configured using PB2 as input+ and PB1 as input-

How can I use the comperator in stop2 mode?

Thanks for help,
Sven

0 REPLIES 0