cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet using LWIP with STM32f427VG

SSala.3
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions

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/

View solution in original post

2 REPLIES 2
Amel NASRI
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

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/