S32K344 GMAC driver ARP support?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 GMAC driver ARP support?

623 Views
peter_yang
Contributor I

我使用S32K344 RTD2.0 GMAC driver with LWIP,但是网络无法ping通,查看GMAC 的gmacif_low_level_init(struct netif *netif)发现如下代码:

/* Enable ARP Off-loading:
* - the board will reply to ARP requests with the
* IP (e.g. 192.168.0.200) to MAC (e.g. 10:11:12:00:00:00) address mapping. */
#if 0 /* FEATURE_GMAC_ARP_EN */
for (i = 0U; i < ETHIF_NUMBER; i++)
{
if ((!netif_cfg[i]->has_dhcp) && (!netif_cfg[i]->has_auto_ip))
{
Gmac_Ip_SetArpOffloading(netif->num, netif_cfg[i]->ip_addr, true);
}
}
#endif /* FEATURE_GMAC_ARP_EN */

 

这段代码在GMAC初始化过程中,没有被启用,是不是目前的GMAC代码导致arp指令无法接收?

0 Kudos
1 Reply

537 Views
versia
Contributor I

Hi Peter,

 

There's no problem with this code. S32K344 does not support ARP offload feature and these code shall not be enabled.

 

If you cannot ping successfully, you'd better debug your program to see where does your problem stuck in.

0 Kudos