I need interface lwip tcp protocol that is KSZ8851SNLI with rt1170 through spi protocol can you help me with it Thank you
Hello
I hope you are well.
To use lwip you might refer to the examples but you need to make modifications on the PHY to use KSZ8851SNLI.
Unfortunately, there are no examples to interface to this specific PHY from our side.
You will need to adapt this implementation, you can refer to the SPI examples as well to integrate your PHY driver.
Best regards,
Omar
Yes, since you're using a different PHY from the used on the EVK it is needed to modify the drivers that communicate the MAC with the PHY. Since it also uses SPI it is needed to also integrate SPI on those drivers.
I cannot guarantee that swapping those files will work since it might still need modification to be ported to RT1170.
To write IP address/subnet mask and gateway address it is needed to modify the values from the macros of the main file of the example.
Best regards,
Omar
I cannot assure the specific files to modify for this specific PHY. The MDIO management interface implements a standardized method to access the PHY device management registers. You need to change the PHY drivers and also how the MAC is communicating with the PHY.
Best regards,
Omar