Page 1 of 1

w5500 with stm32h743

Posted: Sun Mar 14, 2021 8:03 am
by urielka
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 6662 times
Connecting the same shield to Arduino Uno yields the correct behavior, ping is 0.2ms:
arduino.png
arduino.png (97.15 KiB) Viewed 6662 times

Re: w5500 with stm32h743

Posted: Mon Mar 15, 2021 9:00 am
by urielka
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 6636 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?

Re: w5500 with stm32h743

Posted: Wed Jan 26, 2022 5:58 am
by skylin008
I had same problem with w5500 test. Can you solve this issue?Thanks@urielka