cancel
Showing results for 
Search instead for 
Did you mean: 

Setting LAN8720 in STM32CubeIDE

Ash1
Associate III

Dear all

I am using LAN8720 with Stm32f407 board ,but in STm32cube platform settings of LWIP it is only showing LAN8742.

Can you help me with how I can achieve setup with LAN 8720.

Note :Do you have any simple LWIP example project for Stmn32f407 board, please share it.

B.R

Ashish

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @Ash1 

First let me thank you for posting.

To set up the LAN8720 with the STM32F407 board using STM32CubeMX, you can follow these steps:

Select "Undefined" in Platform Settings: Since STM32CubeMX only shows LAN8742 in the Platform Settings tab, you can select "Undefined" in the "found solution" option. This allows you to use your own PHY driver

Develop Your Own Driver: You will need to develop your own driver for the LAN8720. Refer to UM2298 for guidelines on developing BSP drivers following ST rules and specification

Regarding a simple LWIP example project for the STM32F407 board, you can refer to the following resources:

STM32CubeF4 Firmware Package: You can find a working Ethernet example within the STM32CubeF4 firmware package. Specifically, look at the project located at:  C:\Users\XXXXXXX\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.1\Projects\STM32F429ZI-                         Nucleo\Applications\LwIP

User Manuals and Application Notes:

UM1713: "Developing applications on STM32Cube with LwIP TCP/IP stack" can help you go further in your application.

THX

Ghofrane

Dear Ghofrane,

The example you have suggested it is based on STM32F429ZI-Nucleo but I am working on stm32f407G disc1 board.

So can you suggest example related to my board.

Note: C:\Users\AshsihP\STM32Cube\Repository\STM32Cube_FW_F4_V1.28.0\Projects\STM324xG_EVAL\Applications\LwIP    I am following this one is it correct for my board.

Thanks for quick response .

B.R

Ashish