关于1061双网口配置问题

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

关于1061双网口配置问题

1,029 Views
陈华
Contributor I

1061使用MCUXpresso Config Tools 25.06工具用lwip_examples/lwip_udpecho_freertos作为模板生成工程,但是无论怎样配置,网口1都无法使用,网口0使用正常。如果使用lwip_examples/lwip_udpecho_bm作为模板,两个网口都能正常使用。请问有没有lwip_udpecho_freertos的双网口配置示例呢?或者是有什么需要注意的地方吗?

Labels (1)
0 Kudos
Reply
3 Replies

1,010 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @陈华 ,

 

无法使用是具体什么情况?同样的代码,使用网口0可以工作,换到网口1就不能工作?有没有debug过具体啥原因?听起来像是receive那边没有用单独的task,你可以check一下lwip的port文件夹下的ethernetif的文件,看一下那个接收函数注册的时候那个宏是不是没定义。

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

913 Views
陈华
Contributor I
网口0正常能ping通,但是网口1无法ping通。我是参考了网口0的初始化的调用netifapi_netif_add,netifapi_netif_set_default,netifapi_netif_set_up这三个函数。网口0是能正常使用,现想你们有没有FreeRTOS配置使用双网口的示例,可以参考呢
0 Kudos
Reply

869 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @陈华 ,

 

RT1170有这样的demo , 但由于RT1060EVK只有一个网口,所以没有这样demo。

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply