i.MXRT1170-EVK enet internal loopback

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

i.MXRT1170-EVK enet internal loopback

Jump to solution
2,821 Views
igrinberg
Contributor II

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:

igrinberg_0-1642007382521.png

 

Please advise on what is the best way to test the internal loopback setting.

Thanks,
Ira.

0 Kudos
Reply
1 Solution
2,761 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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.

kerryzhou_0-1642668651181.png

kerryzhou_1-1642668671613.png

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

 

View solution in original post

0 Kudos
Reply
7 Replies
2,811 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,781 Views
igrinberg
Contributor II

Hi @kerryzhou,
Any additional details I can provide to help?

Thanks,
Ira.

0 Kudos
Reply
2,775 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,769 Views
igrinberg
Contributor II

Sure @kerryzhou , thanks!

Your help is much appreciated.

Ira.

0 Kudos
Reply
2,762 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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.

kerryzhou_0-1642668651181.png

kerryzhou_1-1642668671613.png

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

 

0 Kudos
Reply
2,754 Views
igrinberg
Contributor II

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.

0 Kudos
Reply
2,796 Views
igrinberg
Contributor II

Hi @kerryzhou ,
This is indeed the code I'm relying on to test the internal loopback feature.

Using IAR IDE.

Thanks,
Ira.

0 Kudos
Reply