wiznet5k_send_ethernet: fatal error -5
Port, board and/or hardware
Wiznet W5100S-EVB-Pico
MicroPython version
MicroPython v1.25.0 on 2025-04-15; W5100S-EVB-Pico with RP2040
also 1.24.1, and 1.24.0, but 1.23.0 doesn't give the error
Reproduction
MicroPython v1.25.0 on 2025-04-15; W5100S-EVB-Pico with RP2040
Type "help()" for more information.
import network
nic = network.WIZNET5K()
nic.ifconfig()
('192.168.1.137', '255.255.255.0', '192.168.1.254', '192.168.1.254')
nic.active(True)
wiznet5k_send_ethernet: fatal error -5
nic.isconnected()
True
Expected behaviour
Expected no error to be reported.
However, the error does not seem to affect the operation. The ethernet socket behaviour seems to be working ok.
Observed behaviour
wiznet5k_send_ethernet: fatal error -5
was printed out, but operation of ethernet seems to be working, however I can't be certain all functions are working correctly at this time
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
Unable to setup IP with nic.ipconfig() while works with obsolete nic.ifconfig() network.WIZNET5K
Port, board and/or hardware
RPi Pico, W5500-EVB-Pico
MicroPython version
MicroPython v1.24.1 on 2024-11-29; W5500-EVB-Pico with RP2040
Reproduction
Run below code with
# nic.ipconfig(addr4="192.168.9.12/24",gw4="192.168.9.3") # No pings reply
nor
# nic.ipconfig(addr4=("192.168.9.12","255.255.255.0"),gw4="192.168.9.3") # No ping reply
import network
import time
nic = network.WIZNET5K()
print (nic)
nic.active(True)
print (f"Activated {nic=}")
# nic.ifconfig(('192.168.9.12', '255.255.255.0', '192.168.9.3', '192.168.9.3')) # Pings OK
nic.ipconfig(addr4="192.168.9.12/24",gw4="192.168.9.3") # No pings reply
# nic.ipconfig(addr4=("192.168.9.12","255.255.255.0"),gw4="192.168.9.3") # No ping reply
network.ipconfig(dns="192.168.9.3", prefer=4)
print(f'After static nic config {nic=} {nic.ifconfig()=}')
print(f'After static network config {network.ipconfig("dns")=} {network.ipconfig("prefer")=}')
# In all three cases prints same:
# After static nic config nic=<WIZNET5K> nic.ifconfig()=('192.168.9.12', '255.255.255.0', '192.168.9.3', '192.168.9.3')
# After static network config network.ipconfig("dns")=192.168.9.3 network.ipconfig("prefer")=4
# nic.connect() AttributeError: 'WIZNET5K' object has no attribute 'connect'
print("Waiting for connection...")
while not nic.isconnected():
print ("Not connected")
time.sleep(1)
print ("Connected")
while 1:
time.sleep(3)
print (f"{nic.isconnected()=}")
Expected behaviour
Reply to ICMP ping when NIC configured with nic.ipconfig()
Observed behaviour
No reply to ICMP Ping when configured with nic.ipconfig()
But ICMP Ping replies received after init via nic.ifconfig().
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree