i.MX RT1064 lwIP dual Ethernet – ENET2 works standalone but not when ENET1 is enabled

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

i.MX RT1064 lwIP dual Ethernet – ENET2 works standalone but not when ENET1 is enabled

1,127 次查看
shreya1
Contributor I

I’m using i.MX RT1064 with lwIP (NXP SDK) and trying to use both ENET1 and ENET2.

  • ENET2 works fine when initialized alone (IP assigned, ping replies).

  • When both ENET1 and ENET2 are initialized, both links come up and get IPs via DHCP, but only ENET1 replies to ping.

  • Calling netif_set_default(&enet2_netif) does not make ENET2 respond.

Hardware, PHY, clocks, and MAC addresses are correct (ENET2 works standalone).

Question:
Does the NXP lwIP ethernetif / ENET driver assume a single netif internally?
Are RX/IRQ handlers or ethernetif_input() tied to ENET1 by default, and what is required to properly support dual ENET MACs?

0 项奖励
回复
3 回复数

1,105 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @shreya1,

Could you help me with the following questions?

What version of the SDK are you using?
Are you using any example as a reference? If so, which one?
Could you share how you are configuring both Ethernet interfaces?

Best Regards,
Pablo

0 项奖励
回复

1,044 次查看
shreya1
Contributor I

Hi @Pablo_Ramos , 
Im using SDK version 24.12.00. Actually there are no examples related to Enet2 to refer to that im aware of. If you have any example that I might have missed, please let me know.
Im following the same steps as followed by ethernet 1 in example code exkmimixrt1064_lwip_dhcp_bm.

0 项奖励
回复

1,010 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @shreya1,

Thanks for the information.

Could you share the changes you made to configure ENET1 and ENET2 in the same example?

Are you using the EVK or a custom board?

Best Regards,
Pablo

0 项奖励
回复