I have tried the firmware here:
and this one: W5500_EVB_PICO-20231005-v1.21.0.uf2
Using this code I should get the link come up and be able to ping the device…
spi = SPI(0, 2_000_000, mosi=Pin('GPIO19'), miso=Pin('GPIO16'), sck=Pin('GPIO18'))
nic = network.WIZNET5K(spi, Pin('GPIO17'), Pin('GPIO20')) # spi,cs,reset pin
nic.active(True)
nic.ifconfig(('192.168.0.18', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
while not nic.isconnected():
time.sleep(1)
print(nic.regs())
However I just stay in the loop waiting for isconnected
Here are the register dumps:
Wiz CREG:
0000: 00 00 00 00 00 00 00 00 00 02 77 f3 5c 62 9a 00
0010: 00 00 00 00 00 00 00 00 00 07 d0 08 28 00 00 00
0020: 00 00 00 00 00 00 ff ff 00 00 00 00 00 00 ba 00
0030: 00 00 00 00 00 00 00 78 25 04 00 00 00 00 00 00
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Wiz SREG[0]:
0000: 84 00 00 42 c0 00 ff ff ff ff ff ff 00 00 00 00
0010: 00 00 05 c0 00 00 80 00 00 00 00 00 00 00 10 10
0020: 40 00 09 92 09 92 00 00 00 00 00 00 ff 40 00 00
Wiz SREG[1]:
0000: 00 00 00 00 00 00 ff ff ff ff ff ff 00 00 00 00
0010: 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00
0020: 00 00 00 00 00 00 00 00 00 00 00 00 ff 40 00 00
Wiz SREG[2]:
0000: 00 00 00 00 00 00 ff ff ff ff ff ff 00 00 00 00
0010: 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00
0020: 00 00 00 00 00 00 00 00 00 00 00 00 ff 40 00 00
Wiz SREG[3]:
0000: 00 00 00 00 00 00 ff ff ff ff ff ff 00 00 00 00
0010: 00 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00
0020: 00 00 00 00 00 00 00 00 00 00 00 00 ff 40 00 00
None
Why does the link not come up…??