EDIT 2019 oct 13: Since this thread was opened, a solution was found. See the Wiring and additional information along this thread.
I can't get ETHERNET W5500 module to get working on PYBV1.1 with the Network firmware.
This is getting me completely crazy and screwing up my brain.
A check over my triple check would be kindly welcome.
If someone have a serious suggestion, it would be really welcome.
=== The firmware applied is ===
Properly applied, I can read the WIZNET5K class
EDIT 2019 oct 13: the network firmware available at micropython.org is not complete. By chance, Robert did share a dirty build for W5500 on Pyboard V1.1 and MicroPython v1.11. I shared that test firmware here https://github.com/mchobby/pyboard-driv ... cs/_static but you will have to compile your own MicroPython firmware.
=== The W5500 module ===
It is a Feather Ethernet Wing (EDIT 2019 oct 13: tested with success)
The board Schematic is available there
https://cdn-learn.adafruit.com/assets/a ... 1469652554
=== W5500 Wiring ===
See the link below, it is how did wired the W5500 to my Pyboard V1.1 (wiring revised on 2019 oct 13).
I double checked every pins on my Pyboard... they are all working properly.
I also checked the signals with a scope... I do see them clocking. I even check the MISO_MCU and MISO over the 74AHC1G025 and signal is visible.
=== network ===
The network is the same as for my computer. Up And working.
Ethernet cable to W5500 is good (LEDs are blinking on the W5500 Ethernet socket)
=== Code ====
I did used the initial example coming from
http://docs.micropython.org/en/latest/l ... NET5K.html
EDIT 2019 oct 13: The nic must be activated with nic.active( True ) . If you can't then you do not have the right firmware. Ig you has bus communication issue then the active(True) method will never returns. The nic request an IP address via DHCP with nic.ifconfig( 'dhcp' ) .
Code: Select all
nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.X5, pyb.Pin.board.X4) nic.active( True ) nic.ifconfig( 'dhcp' ) print(nic.ifconfig()) print(nic.isconnected())
Code: Select all
('0.0.0.0', '255.255.255.0', '0.0.0.0', '126.96.36.199') False
('192.168.1.60', '255.255.255.0', '192.168.1.1', '192.168.1.1')
== W5200 also fails! ==
I did tried it out with an WIZ820io module (based on W5200 chipset).
I still got the result
('0.0.0.0', '255.255.255.0', '0.0.0.0', '188.8.131.52')
I also make check with network Firmware v1.9.4, v1.9.3, v1.9.2, v1.9 and the WIZ820io.
They all fails to return an ifconfig without assigned IP.
EDIT 2019 oct 13: Not retested tge WIZ820io. But W5500 based Ethernet is now running.
== Any suggestion? ... please? ==
Is the WIZNET5K in the network firmware is reliable ? EDIT 2019 oct 13: Yes, only if you configure and compile properly the MicroPython firmware.
Did I made something stupidly wrong? EDIT 2019 oct 13: yes, but the wiring is now fixed.
Any suggestion would be really welcome.