How to enter STM32L071CB in sleep mode and how to wake it up using LL library?
Hello, I'm working in a project to receive GPS NMEA sentences and send data thru 4G TCP connection every 10 minutes.
During 1 cycle all the process to receive and send data lasts about 1 minute, the rest 9 minutes the 4G/GPS module is shut down and the MCU needs to be set to sleep mode to minimize power consumption.
Until now everything but setting MCU in sleep mode has been done right . However I am not clear in how to send MCU to sleep, but more importantly, after in sleep mode, how to wake it up to start the next 10 minutes cycle?
Also, when in sleep mode I would like to switch the internal clock which makes MCU run at 32MHz to LSE clock( 32768 Hz)
I will appreciate any help/suggestion about this.
thank you in advance
