How can I make STM32L476 wake-up from deepsleep by pull-up the PA0 port.
I think additional register setting need like a pyboard (https://github.com/micropython/micropython/issues/3834).
STM32L476 wakeup by PA0 from deepsleep
-
- Posts: 5
- Joined: Sat Feb 10, 2018 1:27 pm
- Location: South Korea
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
Re: STM32L476 wakeup by PA0 from deepsleep
You need set EWUP1 bit in registry PWR_CR3.
Code: Select all
import stm
A0 = Pin('A0', Pin.IN, pull=Pin.PULL_DOWN)
stm.mem32[stm.PWR+0x08] |= 1
-
- Posts: 5
- Joined: Sat Feb 10, 2018 1:27 pm
- Location: South Korea
Re: STM32L476 wakeup by PA0 from deepsleep
Thanks it works.
shaoziyang wrote: ↑Wed Jun 17, 2020 1:41 amYou need set EWUP1 bit in registry PWR_CR3.
Code: Select all
import stm A0 = Pin('A0', Pin.IN, pull=Pin.PULL_DOWN) stm.mem32[stm.PWR+0x08] |= 1