Page 2 of 2

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

Posted: Tue Dec 10, 2019 8:31 am
by Roberthh
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

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

Posted: Wed Dec 11, 2019 10:46 am
by Romik
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.

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

Posted: Mon Dec 16, 2019 8:48 am
by Romik
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

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

Posted: Thu Jan 30, 2020 1:19 pm
by Romik
I received a new module from another vendor. the left module works, the right module does not work at all.
Image
Image

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

Posted: Thu Jan 30, 2020 3:30 pm
by Roberthh
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.

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

Posted: Fri Oct 01, 2021 7:50 am
by Jbanzha
(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

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

Posted: Sat Nov 13, 2021 3:27 am
by wangshujun@tom.com
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();
| ^~~~~~~~~~~~~

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

Posted: Wed Nov 17, 2021 1:26 am
by wangshujun@tom.com
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

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

Posted: Fri Dec 10, 2021 3:02 pm
by thestumbler
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.

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

Posted: Tue Dec 28, 2021 10:29 pm
by bartag
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.