---
title: "W55RP20 dormant wakup example"
url: "https://maker.wiznet.io/Aimee0/projects/w55rp20-dormant-wakup-example/"
markdown_url: "https://maker.wiznet.io/Aimee0/projects/w55rp20-dormant-wakup-example/md"
type: "WCC: WIZnet Created Content"
author: "Aimee"
author_url: "https://maker.wiznet.io/Aimee0/"
original_author: "Aimee"
published: "2024-12-02"
language: "en"
hardware: ["WIZnet W55RP20-EVB-Pico"]
likes: 0
views: 1239
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# W55RP20 dormant wakup example

> This is an example of entering dormant mode and being woken up by WOL magic packet.

Original author: Aimee

## Components

- **WIZnet W55RP20-EVB-Pico** x 1 ([docs](https://wiznet.io/products/powered-by-raspberry-pi/w55rp20-evb-pico))

## Documents and links

- [W55RP20 dormant wakeup example](https://github.com/WIZnet-ioNIC/WIZnet-PICO-C-EXTRAS/tree/main/examples/dormant_wakeup) (code)

## Article

github link : <https://github.com/WIZnet-ioNIC/WIZnet-PICO-C-EXTRAS/tree/main/examples/dormant_wakeup>

### Sleep mode vs Dormant mode?

**Sleep mode**

- Sleep Mode is a low-power state in the RP2040 where most of the system is disabled, but the main clock remains active.

- The CPU halts operation, but peripherals (e.g., UART, SPI, I2C) continue to function.

- The system can wake up from events like timer interrupts or GPIO signals.

- Suitable for low-power tasks that require quick wake-up.

**Dormant mode**

- Dormant Mode is a deeper low-power state compared to Sleep Mode, where all clock sources in the RP2040 are disabled.

- In this mode, most peripherals and the system are completely halted, and wake-up is only possible through specific external signals (e.g., GPIO changes) or events like the XOSC (external crystal oscillator).

- It is designed for minimal power consumption but requires more time to resume operation.

### How to test Dormant Wakeup example

**Setup board configuration**

Setup board to W55RP20_EVB_PICO in CMakeLists.txt in WIZnet-PICO-C-EXTRAS/ directory.

```plaintext
# Set board
#set(BOARD_NAME WIZnet_Ethernet_HAT)
#set(BOARD_NAME W5100S_EVB_PICO)
#set(BOARD_NAME W5500_EVB_PICO)
set(BOARD_NAME W55RP20_EVB_PICO)
#set(BOARD_NAME W5100S_EVB_PICO2)
#set(BOARD_NAME W5500_EVB_PICO2)
```

**Setup network settings**

Setup network configuration such as IP in 'w5x00_dormant_wakeup.c' which is the Dormant_Wakup example in 'WIZnet-PICO--C-EXTRAS/examples/dormant_wakeup/' directory.

```plaintext
/* Network */
static wiz_NetInfo g_net_info =
{
        .mac = {0x00, 0x08, 0xDC, 0x12, 0x34, 0x56}, // MAC address
        .ip = {192, 168, 11, 2},                     // IP address
        .sn = {255, 255, 255, 0},                    // Subnet Mask
        .gw = {192, 168, 11, 1},                     // Gateway
        .dns = {8, 8, 8, 8},                         // DNS server
        .dhcp = NETINFO_STATIC                       // DHCP enable/disable
};
```

```plaintext
/* Port */
#define PORT_WOL 9000
```

**Setup WOL program**

1. Download WOL program

<https://apps.microsoft.com/detail/9nblggh51pb3?hl=ko-KR&gl=KR>

2. Open WOL program and add module.

![](https://maker.wiznet.io/upload/ckeditor5/50543170%5F1730210741%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/50543170%5F1730210759%2Epng)

**Build & Run**

If the Dormant_Wakeup example works normally, you can see network information and go to dormant mode. User LED will not blinking in dormant mode.

![](https://maker.wiznet.io/upload/ckeditor5/19234554%5F1732897865%2Epng)

Send WOL magic packet in WOL program. (Click right button on mouse)

![](https://maker.wiznet.io/upload/ckeditor5/50543170%5F1730210868%2Epng)

You can see module is wake up by WOL packet and running. User LED will blinking.

![](https://maker.wiznet.io/upload/ckeditor5/19234554%5F1732897886%2Epng)

The power consumption when the wol is turned on in dormant mode and in activation mode was measured as follows.

| Before send WOL packet(Dormant mode) | After send WOL packet(Idle mode) |
| --- | --- |
| ![](https://maker.wiznet.io/upload/ckeditor5/660675205%5F1733158024%2Epng) | ![](https://maker.wiznet.io/upload/ckeditor5/660675205%5F1733158031%2Ejfif) |

---

Source: https://maker.wiznet.io/Aimee0/projects/w55rp20-dormant-wakup-example/
