W5500-EVB-Pico Not working with your example (ping)

My first user expereience…

I downloaded the firmware 2.0 here:
https://github.com/Wiznet/RP2040-HAT-MicroPython/releases/download/v2.0.0/rp2_w5500_20221111_v2.0.0.uf2

Then I ran your “highlighted” example here (this is “Hello world” for your product):

Result:
The the “leds” on the physical ethernet port turns off and of course I can’t ping the address.

So my question, before your release of the new 2.0 firmware (2 days ago), did you forget to test the specific code or the whole micropython library?

Is there any preferred firmware version with less features but with more stability?

I bought 3 cards for development and I hope you have a solution…

I tried with the old 1.5 firmware…

I downloaded the firmware here:
https://github.com/Wiznet/RP2040-HAT-MicroPython/releases/download/v1.0.5/rp2_w5100s_20220421_v1.0.5.uf2

Then I ran your example again for “pinging”:

  • See example above

Result:
The the “leds” are now OK on the physical ethernet port and I can also ping the address!

My conclusion is that your new firmware have problems with the socket/ethernet and your tester have missed the biggest feature for buying the “w5500-EVB-Pico”. I haven’t tested the c/c++ or circuit libraries.

Please fix this"

Hi~
Since I switched to the changed version in MicroPython, I couldn’t check the example.
Please use the additional command below.

nic.active(True)

If you want to use DHCP to assign an IP address, you need to enter the following command.

nic.ifconfig(‘dhcp’)

I have attached the code I used below.

from machine import Pin,SPI
import network
import time

#W5x00 chip init
def w5x00_init():
    spi=SPI(0,2_000_000, mosi=Pin(19),miso=Pin(16),sck=Pin(18))
    nic = network.WIZNET5K(spi,Pin(17),Pin(20)) #spi,cs,reset pin
    nic.active(True)
#==================================
# Use Static IP
    #nic.ifconfig(('192.168.1.20','255.255.255.0','192.168.1.1','8.8.8.8'))
# Use Dynamic IP(DHCP)
    nic.ifconfig('dhcp')
#============================
    print(nic.ifconfig())
    while True :
        time.sleep(1)

def main():
    w5x00_init()

if __name__ == "__main__":
    main()


I used the firmware 2.0 again and this time the led is working when I added “nic.active(True)” and I’m using a static address (same as in firmware 1.5) but I can’t ping the IP-address…

Sorry for not reading your example in the right order and thanks for the solution with firmware 2.0!
For other readers you have to activate the network interface before you set the DHCP or a static IP-address/subnet mask/gateway/DNS.

Example:

    spi=SPI(0,2_000_000, mosi=Pin(19),miso=Pin(16),sck=Pin(18))
    nic = network.WIZNET5K(spi,Pin(17),Pin(20))
    nic.active(True)
    nic.ifconfig('dhcp')

Tested ping example with a static IP:

from machine import Pin,SPI
import network
import time

def w5x00_init():
    spi=SPI(0,2_000_000, mosi=Pin(19),miso=Pin(16),sck=Pin(18))
    nic = network.WIZNET5K(spi,Pin(17),Pin(20)) #spi,cs,reset pin
    nic.active(True)
    nic.ifconfig(('192.168.0.100','255.255.255.0','192.168.0.254','192.168.0.254'))
    while not nic.isconnected():
        time.sleep(1)
        # Debugg
        print(nic.regs())
    mac = ''.join(['{:02x}'.format(b) for b in nic.config("mac")])
    print("macaddress: " + mac)

def main():
    w5x00_init()
    while True:
        time.sleep(1)

if __name__ == "__main__":
    main()