Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
User avatar
Roberthh
Posts: 2141
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

Post by Roberthh » Tue Dec 10, 2019 8:31 am

You have to compile the code with:

MICROPY_PY_WIZNET5K = 5500
MICROPY_PY_LWIP = 1

Don't forget to call 'make clean' before recompile.

P.S:: For convenience, I placed an image here: https://hidrive.ionos.com/lnk/I4Ymqmvs

Romik
Posts: 11
Joined: Mon Dec 09, 2019 2:40 pm

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

Post by Romik » Wed Dec 11, 2019 10:46 am

Roberthh wrote:
Tue Dec 10, 2019 8:31 am
You have to compile the code with:

MICROPY_PY_WIZNET5K = 5500
MICROPY_PY_LWIP = 1

Don't forget to call 'make clean' before recompile.

P.S:: For convenience, I placed an image here: https://hidrive.ionos.com/lnk/I4Ymqmvs
Thank you.
I was tested this module with arduino, the same result, I thin that this module is broken.
I will be order new one and testing again.

Romik
Posts: 11
Joined: Mon Dec 09, 2019 2:40 pm

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

Post by Romik » Mon Dec 16, 2019 8:48 am

I was tested other Ethernet Module with Wiznet 5500. All is working.

Code: Select all

import network
nic = network.WIZNET5K(SPI(1,SPI.MASTER), pyb.Pin.board.PA4, pyb.Pin.board.PA3)
nic.active(True)
nic.ifconfig( ‘dhcp’ )
print(nic.ifconfig())
(‘10.10.10.113’, ‘255.255.255.0’, ‘10.10.10.1’, ‘10.10.10.1’)

MicroPython compiled with parameters.
MICROPY_PY_WIZNET5K = 5500
MICROPY_PY_LWIP = 1
Image

This module NOT WORKING with MicroPython with STM32F4Disc and PyBoard v1.1 (and not working Arduino)

Image

Romik
Posts: 11
Joined: Mon Dec 09, 2019 2:40 pm

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

Post by Romik » Thu Jan 30, 2020 1:19 pm

I received a new module from another vendor. the left module works, the right module does not work at all.
Image
Image

User avatar
Roberthh
Posts: 2141
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

Post by Roberthh » Thu Jan 30, 2020 3:30 pm

They are similar,. but not identical. Track routing seems more critical on the right hand device, like under the two C's right to the "popctrl" label, and in the upper right corner the tracks that connect the W5500 to the soldering pins of the module.

Post Reply