Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf
Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf
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
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
Thank you.Roberthh wrote: ↑Tue Dec 10, 2019 8:31 amYou 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
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
I was tested other Ethernet Module with Wiznet 5500. All is working.
This module NOT WORKING with MicroPython with STM32F4Disc and PyBoard v1.1 (and not working Arduino)
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
This module NOT WORKING with MicroPython with STM32F4Disc and PyBoard v1.1 (and not working Arduino)
Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf
I received a new module from another vendor. the left module works, the right module does not work at all.
Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf
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
(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
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
-
- 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
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();
| ^~~~~~~~~~~~~
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();
| ^~~~~~~~~~~~~
-
- 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
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
If you clone directly from GitHub, the compilation is correct
-
- 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
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
Did you find a solution for this issue? I'm struggling with a STM32F411 board.Jbanzha wrote: ↑Fri Oct 01, 2021 7:50 ammpnetworkport.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