2021-07-09 04:02 AM
Hi Everyone,
I am using stm32l073rz board, used both wakeup pin PWR_CSR_EWUP1 (PA0) and PWR_CSR_EWUP2 (PC13) for generating an interrupt to wakeup from standby mode, and I am enable both pin PWR->CSR |= (PWR_CSR_EWUP1 | PWR_CSR_EWUP2); before go to standby mode but the interrupt generated on PC13 pin only and i am unable to generate on PA0 pin.
2021-07-09 06:43 AM
Hello @Myada.1 and welcome to the community :),
You can take a look at these examples under this path:
"STM32Cube\Repository\STM32Cube_FW_L0_V1.12.0\Projects\NUCLEO-L073RZ\Examples\PWR"
Mohamed Aymen.
2021-07-09 08:06 AM
Hello @Mohamed Aymen HZAMI Sir,
Thank You sir for replying. This example as you given the reference, in this given only single wakeup pin PC13 to generate interrupt to wakeup from standby mode, that is i am able to do already. I want to use both wake pin on PA0 and PC13 to wakeup from standby mode, that was not able to done to me. i am doing in the code:
PWR->CSR |= PWR_CSR_EWUP1; //PA0 - Enable
PWR->CSR |= PWR_CSR_EWUP2; //PC13 - Enable
PWR->CR |= PWR_CR_CWUF;
HAL_PWR_EnterSTANDBYMode();
in that case, only PC13 generate. PA0 is not wake up from standby mode.
2021-07-09 02:11 PM
This example is for wakeup on PA0:
Seems like you have a hardware issue though. Are you sure PA0 is low and going high? Is it floating? Custom board?
2021-07-11 10:35 PM
Thank you for replied. Yes, i was check frequency on oscilloscope on PA0 is go to low to high. it's not floating. Board: STM32L073RZ.
Actually, i was also check on PC13 pin it's always high when it is go to standby mode also.
2021-07-14 02:16 AM
how can we use all Wake Up pin PA0, PC13 and PE6 simultaneously on standby mode in a single code?