i.MXRT1170-EVK enet internal loopback

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

i.MXRT1170-EVK enet internal loopback

跳至解决方案
2,816 次查看
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 项奖励
回复
1 解答
2,756 次查看
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 项奖励
回复
7 回复数
2,806 次查看
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 项奖励
回复
2,776 次查看
igrinberg
Contributor II

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

Thanks,
Ira.

0 项奖励
回复
2,770 次查看
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 项奖励
回复
2,764 次查看
igrinberg
Contributor II

Sure @kerryzhou , thanks!

Your help is much appreciated.

Ira.

0 项奖励
回复
2,757 次查看
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 项奖励
回复
2,749 次查看
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 项奖励
回复
2,791 次查看
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 项奖励
回复