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
Copy file name to clipboardExpand all lines: README.md
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,30 @@ msh />wiz_ping baidu.com
134
134
135
135
The normal test of the `ping` command indicates that the WIZnet device is successfully connected to the network, and then you can use the standard BSD Socket APIs abstracted by SAL (Socket Abstraction Layer) for network development (MQTT, HTTP, MbedTLS, NTP, Iperf, etc.), WIZnet software package The supported protocol cluster types are: the primary protocol cluster is **AF_WIZ**, and the secondary protocol cluster is **AF_INET** (for specific differences and usage, please refer to [SAL Programming Guide](https://www.rt-thread.org/document/site/submodules/rtthread-manual-doc/zh/1chapters/13-chapter_sal/) ).
136
136
137
-
## 4. Common problems
137
+
138
+
## 4. Transplant files
139
+
140
+
In practical applications, we often mount multiple devices on an SPI bus, but each device requires a CS pin to enable it.
141
+
At this point, we need to configure it before SPI initialization:
142
+
143
+
- Copy the ports/spiw_iz_init. c file to the board/ports folder in the bsp working directory;
- Assertion problem during SPI device initialization
140
163
@@ -153,12 +176,12 @@ The normal test of the `ping` command indicates that the WIZnet device is succes
153
176
- When applying for a socket, the error is ```0x22```. Note that the development branch of wiznet is in the master version or a version greater than V1.1.0. Please pay attention to the execution order of ```wiz_socket_init()```, because the ```sal_check_netdev_internet_up``` networking detection function will actively apply for a socket to determine whether the w5500 has network capabilities, and network status changes will cause ```sal_check_netdev_internet_up``` was called, causing ```0x22``` error.
154
177
155
178
156
-
## 5. Matters needing attention
179
+
## 6. Matters needing attention
157
180
158
181
- When obtaining the software package, you need to pay attention to the correct configuration of the SPI device name, reset pin number and interrupt pin number used;
159
182
- After the initialization is complete, it is recommended to use the `wiz_set_mac()` function to set the device MAC address to prevent conflicts with the default MAC address;
0 commit comments