STM32F4 Ethernet issue with Cube FW_F4 V1.27.1
Hi ST guys,
There seems to be an issue with the "ethernet_link_thread" generated for my particular use-case from CubeMX. As generated,the Ethernet link will not restore the link UP state after being disconnected during run time. My .ioc and workaround are attached below.
Cheers,
Trifon
if(linkchanged)
{
osSemaphoreRelease(RxPktSemaphore); // in some cases the semaphores were stuck taken...
osSemaphoreRelease(TxPktSemaphore); // ...so force-release them here
linkchanged = 0; // linkchanged was never given zero value after intialization
/* Get MAC Config MAC */
HAL_ETH_GetMACConfig(&heth, &MACConf);
MACConf.DuplexMode = duplex;
MACConf.Speed = speed;
HAL_ETH_SetMACConfig(&heth, &MACConf);
HAL_ETH_Start_IT(&heth); // My project uses FreeRTOS, but code was generated with HAL_ETH_Start(&heth);
netif_set_up(netif);
netif_set_link_up(netif);
}
