SJA1110 100Base-T1 Speed Low

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

SJA1110 100Base-T1 Speed Low

3,013 Views
iverson3ya
Contributor III

I have configured all the PHYs, but during testing, the speed of T1 PHY1 remains consistently lower (using iPerf3), while the other PHYs perform normally.

I have ruled out hardware issues, as swapping the TRX lines still results in the same problem with the originally affected PHY.

The settings are identical for all PHYs.

Could you advise on what adjustments may be needed?

Attached is my firmware.

0 Kudos
Reply
16 Replies

2,956 Views
iverson3ya
Contributor III

How can I use the K3 and MDIO Clause 45 to read all the PHYs on the SJA1110?

I referred to the Eth_T_InitPhys() example, but all the values I read are 0.

I have already switched to Clause 45 MMD mode.

0 Kudos
Reply

2,954 Views
iverson3ya
Contributor III
but all the values I read are 0xFFFF.
0 Kudos
Reply

2,896 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

I apologize for late response, but I had to check the solution before I'll share it with you.

The best way to read diagnostic registers is create a S32DS project for SJA1110, put there a code snippet (I will share it with you in private email) and connect debugger (PE micro is sufficient).

Best regards,

Pavel

0 Kudos
Reply

2,883 Views
iverson3ya
Contributor III

Hello PavelL
I have already replied to you in the link provided in the email. Thank you.

0 Kudos
Reply

2,875 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

I went through the logs and I don't see anything suspicious. I went through the mex file once again and all looks good too.

  • What protocol are you using in iperf? The UDP would be better than TCP/IP.
  • What are high level diag registers for the port where 4G module is connected?
  • Could you run iperf to the SJA1110 itself?

Best regards,

Pavel

0 Kudos
Reply

2,762 Views
iverson3ya
Contributor III
  • What protocol are you using in iperf? The UDP would be better than TCP/IP.

iperf -c 192.168.1.200 -p 5001 -i 1

  • What are high level diag registers for the port where 4G module is connected?

Unclear

  • Could you run iperf to the SJA1110 itself?

I have tested the SJA1110's own iPerf against the PC, and the results are the same or even less stable.

0 Kudos
Reply

2,721 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

I apologize for late response caused by Xmas vacations.

  • for UDP iperf, you may add option -u
  • High level diagnostic registers - please refer to UM11107 rev2, chapter 5.9.4. Python script may help you as well  -sja1110evm_hosttools_v1.2\SJA1110EVM\read_highlevel_diagnostic_registers.py

Best regards,

Pavel

0 Kudos
Reply

2,688 Views
iverson3ya
Contributor III

Hi @PavelL 

I used the ECT tool, but I couldn't read the data successfully. Why is that?

iverson3ya_0-1736307389164.png

Thanks

0 Kudos
Reply

2,677 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

Have you added the ECT server to your project?

Does simple ping from ECT tool work?

Best regards,

Pavel

0 Kudos
Reply

2,556 Views
iverson3ya
Contributor III

After using SJA1110 ECT Server 1.0.0, the T1 issue was resolved, but I noticed that the S32K3 is stuck at DMA initialization. What could be the cause of this issue? (Please see the attached image) This problem did not occur before. (I've attached my SJA1110 firmware)

iverson3ya_0-1736837679540.png

Thanks

 

0 Kudos
Reply

2,536 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

Please refer to slide 17 of S32K3 Automotive Telematics Box (T-Box) lwIP Example Guide Training Presentation for fix.

Best regards,

Pavel

0 Kudos
Reply

2,671 Views
iverson3ya
Contributor III

I have successfully flashed the server firmware into the SJA1110, and the ECT is working properly. The issue with the low speed on PHY5 has also been resolved.

 

 

Thank you!

0 Kudos
Reply

2,690 Views
iverson3ya
Contributor III
  • for UDP iperf, you may add option -u

The result is the same; the speed of PHY5 is still very low.

  • High level diagnostic registers - please refer to UM11107 rev2, chapter 5.9.4. Python script may help you as well  -sja1110evm_hosttools_v1.2\SJA1110EVM\read_highlevel_diagnostic_registers.py

Is this Python tool only applicable to the SJA1110EVM reference board? If I am using my own custom board, how should I check it? Should I use MDIO?

0 Kudos
Reply

2,992 Views
PavelL
NXP Employee
NXP Employee

Hello @iverson3ya ,

At first look, I don't see nothing suspicious in you project.

Could you share more details with your project?

  • What board do you use?
  • Who is your link partner during iperf test?
  • Can you list other PHYs you are referring to? (5,6,7 are internal 100BAE-T1, 4 - 1G SGMII and PHY?, 3 - MII autoneg speed, PHY ?, ...)
  • Can you share exact results vs port and iperf settings?
  • Have you tried to read diagnostic registers of SJA1110?

Best regards,

Pavel

0 Kudos
Reply

2,697 Views
iverson3ya
Contributor III
  • What board do you use?

We designed the board ourselves, but after testing with jumper changes, the issue shifted from PHY5 to PHY6. This confirms that it is a software issue.

  • Who is your link partner during iperf test?

AG35(4G mould) <->SJA1110<-> PC

  • Can you list other PHYs you are referring to? (5,6,7 are internal 100BAE-T1, 4 - 1G SGMII and PHY?, 3 - MII autoneg speed, PHY ?, ...)

PHY 5, 6, and 7 were tested, but only PHY 5 has an issue with a significantly lower speed.

  • Can you share exact results vs port and iperf settings?
 

Perform a 10-second iperf3 test from PC to AG35

pc to AG35:
iperf3.exe -c 192.168.1.1 -t 10
iperf3.exe -c 192.168.1.1 -t 10 -R

LAN1 = PHY5
LAN2 = PHY6
LAN3=PHY7


When PHY5 is moved to LAN2 for testing, the speed issue remains. However, when PHY6 is moved to LAN1, it works normally

AG35v1101_S05_iperf3toPC_LAN1.png

AG35v1101_S05_iperf3toPC_LAN2.png

AG35v1101_S05_iperf3toPC_LAN3.png

  • Have you tried to read diagnostic registers of SJA1110?

No, may I ask what method should be used to check? MDIO? Which register should I check? Could you provide guidance?

0 Kudos
Reply

2,970 Views
iverson3ya
Contributor III
  • What board do you use?

Reference: S32K3 Automotive Telematics Box (T-Box)

  • Who is your link partner during iperf test?

PC <-> SJA1110 <-> AG35 (4G-Module)

The SJA1110 acts as a switch and does not perform iPerf directly with the MCU.

  • Can you list other PHYs you are referring to? (5,6,7 are internal 100BAE-T1, 4 - 1G SGMII and PHY?, 3 - MII autoneg speed, PHY ?, ...)

Except for Port 5, where the internal 100BASE-T1 speed is very slow, all other T1 ports (Port 6, 7) and SGMII tests are functioning normally.

  • Can you share exact results vs port and iperf settings?

As shown in the diagram below.

  • Have you tried to read diagnostic registers of SJA1110?

Haven't tried it yet; please provide guidance for testing. Thank you.

 

AG35v1101_S05_iperf3toPC_LAN1.png

AG35v1101_S05_iperf3toPC_LAN2.png

AG35v1101_S05_iperf3toPC_LAN3.png

   

0 Kudos
Reply