ioLibrary_Driver can be used for the application design of WIZnet TCP/IP chips as W5500, W5300, W5200, W5100 W5100S.
613
stars
331
forks
source link
_WIZCHIP_ < W5200 : wizchip_init : Infinite loop when buffer size is set to 0 #44
Closed
vanvught closed 6 years ago
There are 2 lines with an infinite loop when there is a socket buffer set with zero size.
https://github.com/Wiznet/ioLibrary_Driver/blob/master/Ethernet/wizchip_conf.c#L444 https://github.com/Wiznet/ioLibrary_Driver/blob/master/Ethernet/wizchip_conf.c#L478
Test case:
A possible fix can be:
With the above, j=0, therefore
setSn_RXBUF_SIZE(i, j);
will set a zero buffer size for that socket.