cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet issue (STM32F7BIT)

Edwin kaus
Associate II
Posted on October 12, 2017 at 14:40

Hello .,

I am working on STM32 MCU in our custom board, In this I am facing some issues related to Ethernet interface. 

I manage to generate Ethernet code using STM cube MX,(Using in RMII), The code is working but not reliably working,

 When I make ping from PC it works 3 time out of 5 iteration. It works for some time . I don't find any solution for this problem.

MCU : Running at 216Mhz

Ethernet configuration I am using: : 100Mbps,Full duplex mode, And I have not enabled Ethernet global interrupt(NVIC setting) , Does this configuration make any problem.

I have made some changes in code to make ping work :

int main(void)

{

  HAL_Init();

  SystemClock_Config();

  /* Initialize all configured peripherals */

  MX_GPIO_Init();

  MX_LWIP_Init();

  while (1)

  {  MX_LWIP_Process();

  }

  /* USER CODE END 3 */

}

If I add MX_LWIP_Process() function in while loop then only the ping is working (That is also for some time not every time). 

Can anyone suggest me to resolve this issue. 

I have attached cubeMX file for the reference.

#ethernet-stm32f7 #stme32-cube
4 REPLIES 4
Amel NASRI
ST Employee
Posted on October 16, 2017 at 15:32

Hi

karthikshivanna.94

‌,

Please refer to this discussion

https://community.st.com/0D70X000006SrvzSAC

, you may find some help there.

-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.

Posted on October 19, 2017 at 18:13

Hello

st.mcu

The Ethernet issue is not yet resolved , I have tried in all aspect like interrupt mode and polling mode . I also tried using RTOS but still problem is unresolved. If I switch off and switch on the board some times work but some times Ethernet link not getting UP. Is there any timing issue creates this problem.

I am running MCU at 216MHZ speed , Is that high speed creates any issues in Ethernet.

I have wasted lot of time in this issue , Can you please help me to resolve the issue.

Thank you.,

hello, I have problem the same as you 

have you fixed it?

HAkpı.1
Associate

check if correct your ethernet phy addr

for the STM32F7-Discover LAN8742A_PHY_ADDRESS should be 0