You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This produces `app.elf` and `app.bin` for use with TZEN=0 (TrustZone disabled).
@@ -94,7 +94,7 @@ picocom -b 115200 /dev/ttyACM0
94
94
95
95
## Example Output
96
96
97
-
When the firmware boots successfully, you should see output similar to:
97
+
When the firmware boots successfully with DHCP (default), you should see output similar to:
98
98
99
99
```
100
100
=== wolfIP STM32H563 Echo Server ===
@@ -113,11 +113,35 @@ Entering main loop. Ready for connections!
113
113
Loop starting...
114
114
```
115
115
116
+
When static IP is enabled, the output will show "Setting IP configuration:" instead of "DHCP configuration received:".
117
+
116
118
The "PHY link: UP" message indicates the Ethernet PHY has established a link with the network.
117
119
118
120
## Network Configuration
119
121
120
-
The example configures the following static IP:
122
+
The example can be configured to use either DHCP or static IP. By default, DHCP is enabled.
123
+
124
+
### DHCP Configuration (Default)
125
+
126
+
By default, the device uses DHCP to automatically obtain IP address, subnet mask, gateway, and DNS server from a DHCP server on the network. The obtained configuration will be displayed on the serial console.
127
+
128
+
**Note:** When DHCP is enabled, the device will wait up to 30 seconds for a DHCP server response during initialization. If no DHCP server is available, the device will timeout and continue without network configuration.
129
+
130
+
### Static IP Configuration
131
+
132
+
To use static IP instead of DHCP, set `WOLFIP_ENABLE_DHCP` to `0` in `config.h`:
133
+
134
+
```c
135
+
#defineWOLFIP_ENABLE_DHCP 0
136
+
```
137
+
138
+
Or compile with:
139
+
140
+
```bash
141
+
make CFLAGS+="-DWOLFIP_ENABLE_DHCP=0"
142
+
```
143
+
144
+
When static IP is enabled, the example configures the following:
0 commit comments