Skip to main content
SSala.3
Associate III
January 4, 2022
Solved

Ethernet using LWIP with STM32f427VG

  • January 4, 2022
  • 2 replies
  • 2106 views

Hello,

I was trying to do a basic Ethernet set up to send UDP packets using LWIP stack, STM32f427VG MCU and CubeIDE. 

For initial testing I have configured the Ethernet module and external PHY - KSZ8041NL and tried sending PING command. But the ethernet module in my PC is not detecting the hardware. Seems like I have configured wrongly because the hardware is perfectly sending data over ethernet when I load another program. I am not using any OS at present.

I have attached my project file here. Please share your valuable comments.

Thank you

This topic has been closed for replies.
Best answer by SSala.3

Hi,

Thank you for your reply, it was resolved. The issue was, I wasn't enabling the clock to the PHY. Below is a very good tutorial for beginners.

https://controllerstech.com/stm32-ethernet-1-connection/

2 replies

Amel NASRI
ST Technical Moderator
January 10, 2022

Hi @SSala.3​ ,

As there is no exact example with your current setup in STM32CubeF4 package, I suggest you to refer to some LWIP examples available under STM32CubeF4/Projects/STM324x9I_EVAL/Applications/LwIP at master · STMicroelectronics/STM32CubeF4 · GitHub.

Try to compare your implementation with the one used in the example similar to your expected application.

There is also the knwoledge article "How to create project for STM32H7 with Ethernet and LwIP stack workinge" that may be helpful for although it is based on STM32H7.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
SSala.3
SSala.3AuthorBest answer
Associate III
January 17, 2022

Hi,

Thank you for your reply, it was resolved. The issue was, I wasn't enabling the clock to the PHY. Below is a very good tutorial for beginners.

https://controllerstech.com/stm32-ethernet-1-connection/