Read version from w5500

we use the w5500 in our project on a VxWorks environment, and once in a while we want to check if WIZNET is alive, so I thought in order to implement that I could read the chip’s version with wiz_getVERSIONR().
The datasheet says this function should return 0x04, but I receive there sometimes 0x10, sometimes 0xFF, sometimes 0x03 and sometimes 0xA8.
What could be the reason that I don’t manage reading the chip’s version?


The version register value is 0x04, this is a fixed value.
If it is read with a different value each time, you need to check whether SPI works normally.

Various reasons
SPI clock destabilization , CSn Control problem… etc