w5500 with stm32h743

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
urielka
Posts: 5
Joined: Fri Aug 23, 2019 7:07 pm

w5500 with stm32h743

Post by urielka » Sun Mar 14, 2021 8:03 am

Hi,

I am running micropython 1.14 (happens also on 1.9) on the NUCLEO-H743ZI dev board (compiled using the board definition in micropython, no further changes) connected to a W5500 shield.

The issue I am seeing is some kind of delay when sending UDP packets and also when just pinging the board.
The ping goes from 1ms to 200ms and it seems to be cycling (like there is some fixed polling or something), going down and up:
micropython.png
micropython.png (170.9 KiB) Viewed 6307 times
Connecting the same shield to Arduino Uno yields the correct behavior, ping is 0.2ms:
arduino.png
arduino.png (97.15 KiB) Viewed 6307 times

urielka
Posts: 5
Joined: Fri Aug 23, 2019 7:07 pm

Re: w5500 with stm32h743

Post by urielka » Mon Mar 15, 2021 9:00 am

I changed LWIP_TICK in stm32/ports/modnetwork.c to be every 50ms instead of 128ms and now it looks like this:
WhatsApp Image 2021-03-15 at 10.57.19 AM.jpeg
WhatsApp Image 2021-03-15 at 10.57.19 AM.jpeg (143.13 KiB) Viewed 6281 times
So it seems the issue stems from the fact that the W5500 implementation is using polling instead of interrupts, why is that? what is the recommended solution for this?

skylin008
Posts: 88
Joined: Wed Mar 11, 2015 6:21 am

Re: w5500 with stm32h743

Post by skylin008 » Wed Jan 26, 2022 5:58 am

I had same problem with w5500 test. Can you solve this issue?Thanks@urielka

Post Reply