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: 3667
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: 3667
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.

Jbanzha
Posts: 1
Joined: Fri Oct 01, 2021 7:35 am

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

Post by Jbanzha » Fri Oct 01, 2021 7:50 am

(MicroPython v1.17-74-...)
if I compile with:
~/micropython/ports/stm32 $ make MICROPY_PY_WIZNET5K=5500 MICROPY_PY_LWIP=1
there is an implicit declaration of function.
This is all the same for all Boards.

..........
CC usbdev/class/src/usbd_msc_scsi.c
CC boardctrl.c
CC main.c
CC stm32_it.c
CC usbd_conf.c
CC usbd_desc.c
CC usbd_cdc_interface.c
CC usbd_hid_interface.c
CC usbd_msc_interface.c
CC mphalport.c
CC mpnetworkport.c
mpnetworkport.c: In function 'pyb_lwip_poll':
mpnetworkport.c:58:5: error: implicit declaration of function 'wiznet5k_poll' [-Werror=implicit-function-declaration]
wiznet5k_poll();
^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:77: build-PYBV10/mpnetworkport.o] Fehler 1

By compiling without the MICROPY_PY_LWIP=1
runs OK an the Hardware is included

has anyone an Idea for me to fix my Problem?
Greathings Jürgen

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

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

Post by wangshujun@tom.com » Sat Nov 13, 2021 3:27 am

I also encountered the same problem, compilation error

CC mpnetworkport.c
mpnetworkport.c: In function 'pyb_lwip_poll':
mpnetworkport.c:58:5: error: implicit declaration of function 'wiznet5k_poll' [-Werror=implicit-function-declaration]
58 | wiznet5k_poll();
| ^~~~~~~~~~~~~

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

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

Post by wangshujun@tom.com » Wed Nov 17, 2021 1:26 am

Download the package of 1.17 + daily update package from the official website, and the compilation will report the above error
If you clone directly from GitHub, the compilation is correct

thestumbler
Posts: 11
Joined: Tue Mar 16, 2021 4:19 am

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

Post by thestumbler » Fri Dec 10, 2021 3:02 pm

I think you mentioned it but didn’t update the diagram. For SPI communications you don’t cross the signals like you would for a UART. MISO goes to MISO, MOSI goes to MOSI.

bartag
Posts: 4
Joined: Sat Jan 16, 2021 9:33 pm

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

Post by bartag » Tue Dec 28, 2021 10:29 pm

Jbanzha wrote:
Fri Oct 01, 2021 7:50 am
mpnetworkport.c: In function 'pyb_lwip_poll':
mpnetworkport.c:58:5: error: implicit declaration of function 'wiznet5k_poll' [-Werror=implicit-function-declaration]
wiznet5k_poll();
^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:77: build-PYBV10/mpnetworkport.o] Fehler 1
Did you find a solution for this issue? I'm struggling with a STM32F411 board.

Post Reply