2025-03-13 11:51 PM
Hello! I made recently small project using the NUCLEO476RG board and W5500 Ethernet shield which basically makes a web server. I followed this guide: https://www.micropeta.com/video109. The problem is, i cant receive the ip adress from the W5500 chip after the project debugging and can't connect to web server. I tried different spi, ethernet shield and etc (so it's possibly not the hardware problem). I also tried setting the breakpoint after the wizchip initialization (line 265 in main.c). The spi on nucleo is working, i proved it with oszilloskop. I would be very grateful for any advice.
2025-03-14 2:45 AM - edited 2025-03-14 3:02 AM
Well, this is not a problem with the NUCLEO, certainly not with STM32, but an issue with W5500. Similar topics have already been discussed here several times and should be findable if you search for "W5500", e.g. here or there.
Hope that helps?
Good luck!
/Peter
2025-03-14 2:53 AM - edited 2025-03-17 7:13 AM
@hardw0rk3r wrote:The spi on nucleo is working, i proved it with oszilloskop.
An oscilloscope isn't going to tell you much here beyond that the physical link is functioning.
You need an analyser to see the communications between your STM32 and the W5500.
And/or provide trace output (eg, to a UART) to see what's going on.
Also use tools such as Wireshark to see what's actually happening on the ethernet.
As @Peter BENSCH said, this is not an ST or STM32 issue.
WS5500 documentation is here: https://docs.wiznet.io/Product/iEthernet/W5500/overview
Wiznet's GitHub: https://github.com/Wiznet/
Wiznet forums: https://maker.wiznet.io/forum
2025-03-17 10:45 AM
Hello Andrew! Thank you for your reply and help. I made another small project where i tried to acces the version registry. I'm receving the answer from w5500 chip, but im doubting if it is the right. Because i'm always receiving 0xF in serial monitor instead of 0x0F instead of the actual version of the chip, which is 0x0039. Excuse me if i made any mistakes in message, my English is not perfect :D. Thank you for your Attention and help!
2025-03-17 11:40 AM
@hardw0rk3r wrote:i'm always receiving 0xF in serial monitor instead of 0x0F instead of the actual version of the chip, which is 0x0039.
So the basic SPI comms between your STM32 and the WS5500 is not working.
So you need to debug that.
First step would be to check the SPI comms using a logic analyser (or similar) which can show you those messages & replies.