2017-10-12 05:40 AM
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-cube2017-10-16 06:32 AM
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.
2017-10-19 11:13 AM
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.,
2019-01-01 01:44 AM
hello, I have problem the same as you
have you fixed it?
2022-06-23 03:21 AM
check if correct your ethernet phy addr
for the STM32F7-Discover LAN8742A_PHY_ADDRESS should be 0