cancel
Showing results for 
Search instead for 
Did you mean: 

unable to setup a simple server in stm32f407 with Lan8720

Discount_50
Associate

I am trying a simple example code for running the server in stm32f407, I have used LAN 8720. The connection are as follows:
PA1 -----nINT/RETCLK
PA2-----MDIO
PA7-----CRS
PB11----TX_EN
PB12---TX0
PB13---TX1
PC1----MDC
PC4----RX0
PC5----RX1

 

my settings in the cube ide are:

RCC--> HSE:crystal/ceramic Resonator
SYS---> Debug: trace asynchronous SW
CONNECTIVITY----> ETH: RMII
MIDDLEWARE---> LWIP setting:

Discount_50_0-1732519438718.png

My  clock configuration settings:

Discount_50_1-1732519499068.png

 

my main.c is attached below.

 

I am not able to figure out the problem. I am pinging the IP and it is not responding, the page is showing error "server not responding"

 

1 REPLY 1
Imen.D
ST Employee

Hello @Discount_50 ,

Try the LwIP example within STM32CubeF4 package and you may update the it according to your needs:

STM32CubeF4/Projects/STM32F429ZI-Nucleo/Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS at master · STMicroelectronics/STM32CubeF4 · GitHub

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen