Hi:
SDK ver: 2.6.2 EVKB IMXRT1061
I use the usb、sai、and enet.
I hope that the USB and SAI interfaces can be used normally When I do not plug in the network cable。
But now if I don't plug in the network cable when I init the enet, It will block all the task .
How does enet support hot plug function ?
已解决! 转到解答。
Hi @bobhi009 ,
I find your ethernetif_phy_init API already add the timeout count, do you test it, if you didn't plug the network cable, debug the code, whether it can go over through the while, then do the other module initializing? Or it still stay in the ethernetif_phy_init?
In fact, just need to add the timeout, when the time is reached, and the network cable still didn't plugin, just go over that code, and don't do other enether coding.
Please debug your code and test it again.
Best Regards,
Kerry
Hi @bobhi009 ,
I find your ethernetif_phy_init API already add the timeout count, do you test it, if you didn't plug the network cable, debug the code, whether it can go over through the while, then do the other module initializing? Or it still stay in the ethernetif_phy_init?
In fact, just need to add the timeout, when the time is reached, and the network cable still didn't plugin, just go over that code, and don't do other enether coding.
Please debug your code and test it again.
Best Regards,
Kerry
Hi @bobhi009 ,
Thanks for your updated information.
Yes, you are right, you can change the timeout time, it is totally controlled by the customer requirement!
If your issue is solved, please help to mark the correct answer, just to close this case, any new issues in the future, welcome to create the new question post.
Best Regards,
Kerry