I'm looking to build a small application which wakes up the uC each 500ms to handle some software loops, and then go back in active halt mode with RTC (alarm and wake up function enabled) and LCD running with LSE. The firmware is working, but the measured power consumption is way too high (near 35uA).
I've checked that the clock is only distributed on RTC and LCD and that each module are off. There is no interrupt pending and the halt() seems to be correctly executed. The GPIO are configured with a fixed reference.
The problem I see is that RTC_ISR1->RECALPF is always 1, don't understand why this one never goes to 0, and how to modify the code so this flag works.
How should I go further to discover what is drawing current?