cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP integration with external PHY

TheoMj
Associate

Hello, is it possible to ușe the LwIP Middleware over the low level library for an external PHY such as ENC28J60?If so, could you pinpoint me to a documentation or an article?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
STea
ST Employee

Hello @TheoMj ,

Yes, you can use LWIP with probably any external PHY as long as it is compatible with your MCU as LWIP is a generic Network stack designed to be used with your preferred Hardware combination.

you will need to port the ethernetif.c file and add he dedicated header and source files for ENC28J60 PHY and configure an SPI interface using the correct pins top connect to the PHY module.
you can find an example implementing a very similar usecase to yours on this link STM32_ENC28J60/src at master · Georges760/STM32_ENC28J60 (github.com)
 you will find attached the source and header files for this PHY as well as the ethernetif file to configure this Network interface with LWIP.

Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
STea
ST Employee

Hello @TheoMj ,

Yes, you can use LWIP with probably any external PHY as long as it is compatible with your MCU as LWIP is a generic Network stack designed to be used with your preferred Hardware combination.

you will need to port the ethernetif.c file and add he dedicated header and source files for ENC28J60 PHY and configure an SPI interface using the correct pins top connect to the PHY module.
you can find an example implementing a very similar usecase to yours on this link STM32_ENC28J60/src at master · Georges760/STM32_ENC28J60 (github.com)
 you will find attached the source and header files for this PHY as well as the ethernetif file to configure this Network interface with LWIP.

Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.