Click here to Skip to main content
16,022,257 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C
netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
while(1){
netif_set_default(&gnetif);

if (netif_is_link_up(&gnetif))
{ netif_set_up(&gnetif);
break;
}
else
{  netif_set_down(&gnetif);
}
netif_set_link_callback(&gnetif, ethernet_link_status_updated);
}


What I have tried:

I am using open source ethernet code and i am having trouble while connecting. Also when I connect i see my desired output with ARPlines does that mean my connection is lost than connected again or is it just for affirmation for the connection?
Posted
Updated 11-Jul-24 2:54am
v2
Comments
jeron1 11-Jul-24 10:14am    
What is ARPlines? Maybe you expand more on what exactly you are expecting to happen during/after the connection.

1 solution

To establish a constant Ethernet connection with the STM32H, ensure the hardware is properly configured, use a reliable power supply, and update the firmware. Use STM32CubeMX for configuration and the HAL library for Ethernet initialization and management. Check the connection regularly and troubleshoot any network glitches in your code to ensure stability.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900