Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updating numbered headings

...

At this time, the power consumption goes down dramatically and should measure about 5 mA @3.3V.

1.

...

3. Resuming from Low Power Mode

Press the BTN1 User Button on the STM32H7-BSB board to wake the system up:

...

Code Block
/ # ping 192.168.1.1&
[1] 64 ping 192.168.1.1
/ # PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=3.880 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=1.974 ms
64 bytes from 192.168.1.1: seq=6 ttl=64 time=1.927 ms

/ # echo mem > sys/power/state

[ 38.682054] PM: suspend entry (deep)
[ 38.684774] Filesystems sync: 0.000 seconds
[ 38.688727] Freezing user space processes
[ 38.694276] Freezing user space processes completed (elapsed 0.001 seconds)
[ 38.700091] OOM killer disabled.
[ 38.703263] Freezing remaining freezable tasks
[ 38.709326] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 38.715668] printk: Suspending console(s) (use no_console_suspend to debug)
[ 38.725384] stm32-dwmac 40028000.ethernet eth0: Link is Down
[ 38.742262] stm32-dwmac 40028000.ethernet eth0: No Safety Features support found
[ 38.742718] stm32-dwmac 40028000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 38.743246] stm32-dwmac 40028000.ethernet eth0: configuring for phy/rmii link mode
[ 38.828547] OOM killer enabled.
[ 38.831592] Restarting tasks ... done.
[ 38.835563] PM: suspend exit
/ # [ 41.843648] stm32-dwmac 40028000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
64 bytes from 192.168.1.1: seq=10 ttl=64 time=2069.568 ms
64 bytes from 192.168.1.1: seq=11 ttl=64 time=1068.468 ms
64 bytes from 192.168.1.1: seq=12 ttl=64 time=67.962 ms
64 bytes from 192.168.1.1: seq=13 ttl=64 time=1.983 ms
64 bytes from 192.168.1.1: seq=14 ttl=64 time=1.929 ms

1.

...

4. Configuring GPIO Key as a Wake-up Source

The default trigger used for system wake-up is the BTN1 User Button on the STM32H7-BSB development board. It is connected to the PH.2 GPIO on the STM32H7. The button is configured in the rootfs.dts file correspondingly. The button-1 node in gpio-keys specifies the gpio-key,wakeup property to enable wake-up from this pin:

...