S32K344 GMAC driver ARP support?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K344 GMAC driver ARP support?

628 次查看
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 项奖励
1 回复

542 次查看
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 项奖励