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
│ └───wiz_af_inet.c // WIZnet BSD Socket registered to SAL
26
28
│ │ wiz_device.c // WIZnet device initialization
@@ -134,7 +136,30 @@ msh />wiz_ping baidu.com
134
136
135
137
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
138
137
-
## 4. Common problems
139
+
140
+
## 4. Transplant files
141
+
142
+
In practical applications, we often mount multiple devices on an SPI bus, but each device requires a CS pin to enable it.
143
+
At this point, we need to configure it before SPI initialization:
144
+
145
+
- 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
165
@@ -153,12 +178,12 @@ The normal test of the `ping` command indicates that the WIZnet device is succes
153
178
- 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
179
155
180
156
-
## 5. Matters needing attention
181
+
## 6. Matters needing attention
157
182
158
183
- 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
184
- 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