Yes, the link is established. I monitor the TLK110 constantly and use the following snippit to set LwIP up or down. Just out of curiosity, do you recall where you've seen TI be sad about the TLK110? It's been OK for me so far. I am having a new issue with it where the link comes up and then immediately goes down repetitively with a 25' long Ethernet cable That may be related. Have you ever seen anything like that? It works fine with a shorter cable, though I have not isolated the cable explicitly yet.
void ethernetif_check_link_state(struct netif *netif)
{
uint32_t tmp;
static uint8_t lastLinkStatus = 0;
uint8_t linkUp;
// Read status register
if(HAL_ETH_ReadPHYRegister(&EthHandle, PHY_BMSR, &tmp) != HAL_OK)
{
printf("Read fail!\r\n");
return;
}
linkUp = (tmp & PHY_LINKED_STATUS) ? 1 : 0;
// Check status of the link
if(linkUp != lastLinkStatus)
{
if (linkUp)
{
printf("Link up!!!!\r\n");
netif_set_link_up(netif);
}
else
{
printf("Link down...\r\n");
netif_set_link_down(netif);
}
lastLinkStatus = linkUp;
}
}