Hi guys,
I'm new to embedded works. I am using STM32L0C8 MCU and STM32cubemx to generate hal driver for my first project. One of the feature of the project, is I'm trying to configure it to go into standby mode to conserve lowest power consumption if my program has been idling for some amount of time, then use WKUP pin(PA0) which is wired to a button to trigger a rising edge to wake the MCU. The problem here is I couldn't get it neither the standby mode and wakeup pin to work. I have been working this problem 7 days straight and gone through all the technical manual and couldn't find where am I did wrong, really..... it getting my nerve.
Very appreciate if you can shed some light where am I doing wrong.
MCU pin configuration
Clock configuration
Wakeup pin configuration
Clock config program
The code to put the device in standby mode is standard.
CSR, CR and SCR Flags
I'm new to embedded works. I am using STM32L0C8 MCU and STM32cubemx to generate hal driver for my first project. One of the feature of the project, is I'm trying to configure it to go into standby mode to conserve lowest power consumption if my program has been idling for some amount of time, then use WKUP pin(PA0) which is wired to a button to trigger a rising edge to wake the MCU. The problem here is I couldn't get it neither the standby mode and wakeup pin to work. I have been working this problem 7 days straight and gone through all the technical manual and couldn't find where am I did wrong, really..... it getting my nerve.
Very appreciate if you can shed some light where am I doing wrong.
MCU pin configuration
Clock configuration
Wakeup pin configuration
Clock config program
The code to put the device in standby mode is standard.
CSR, CR and SCR Flags