Hi @kerryzhou ,
As discussed in this thread https://community.nxp.com/t5/i-MX-RT/i-MXRT1170-EVK-ethernet-example/m-p/1392480#M17754 I tried activating the loopback mode in the SDK example enet_txrx_transfer_cm7.
Attached is the updated changed enet_txrx_transfer.c file.
For which I receive the following output:
Please advise on what is the best way to test the internal loopback setting.
Thanks,
Ira.
已解决! 转到解答。
Hi @igrinberg ,
Thanks for your patient.
Today, I test it on my side,I modify the enet_txrx_transfer project, add this code:
config.miiMode = kENET_MiiMode;
config.macSpecialConfig |= kENET_ControlMIILoopEnable;
As this will configure the RCR LOOP bit.
But seems still not enough, as I test it again, it doesn't work.
Could you please tell me why you need to use the internal loopback mode? As I know, this is seldom used, that's why our SDK code also use the external loopback.
In fact, you just need to find a network cable, then connect it like this:
Make loopback network cable:
568B standard Unknowed standard
J1 orange+white green+white
J2 orange green
J3 green+white orange+white
J4 blue brown+white
J5 blue+white brown
J6 green orange
J7 brown+white blue
J8 brown blue+white
Please help to check, whether you can use the external loopback.
If you still must need to use internal loopback, please also let me know, then I need to check with our internal expert.
Best Regards,
Kerry
Hi @igrinberg ,
Do you mean you test this code:
SDK_2_10_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\enet\txrx_transfer\cm7
Please tell me which IDE you are using, I will also find time to check the details.
Best Regards,
kerry
Hi @igrinberg ,
Sorry for my later reply, please give me more time, as I also need to check more details, and these days, really a lot of cases in the testing queue, so a little overflow, please give me more time, any updated information, I will let you know, thanks a lot for your understanding.
Best Regards,
Kerry
Hi @igrinberg ,
Thanks for your patient.
Today, I test it on my side,I modify the enet_txrx_transfer project, add this code:
config.miiMode = kENET_MiiMode;
config.macSpecialConfig |= kENET_ControlMIILoopEnable;
As this will configure the RCR LOOP bit.
But seems still not enough, as I test it again, it doesn't work.
Could you please tell me why you need to use the internal loopback mode? As I know, this is seldom used, that's why our SDK code also use the external loopback.
In fact, you just need to find a network cable, then connect it like this:
Make loopback network cable:
568B standard Unknowed standard
J1 orange+white green+white
J2 orange green
J3 green+white orange+white
J4 blue brown+white
J5 blue+white brown
J6 green orange
J7 brown+white blue
J8 brown blue+white
Please help to check, whether you can use the external loopback.
If you still must need to use internal loopback, please also let me know, then I need to check with our internal expert.
Best Regards,
Kerry
Hi @kerryzhou ,
Using external loopback example code works!
My initial goal was to test it using J4 port.
Can this be done using the same example?
Would you like me to open another thread on the topic?
Thanks,
Ira.