2025-03-05 3:44 AM - edited 2025-03-05 4:56 AM
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:
Software:
How can I use the comperator in stop2 mode?
Thanks for help,
Sven
2025-03-11 5:28 AM
Hello @svenifax and welcome to the community;
What are the plus and minus assignments of COMP inputs?
I recommend you to read and check COMP1, EXTI and relevant GPIO registers content.
Could you please try with this sequence:
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.