imx6q with ksz8795 ethernet transmission abnormal stop

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

imx6q with ksz8795 ethernet transmission abnormal stop

1,377 Views
qq8341248
Contributor I

board: design by us refer to sabreLite-D
cpu: imx6q(MCIMX6Q6AVT10AD)
net switches: ksz8795(1 rgmii interface,4 10/100Mbps ports)
net interface: rgmii 1000Mbps
imx6q ENET_REF_CLK: from FPGA dedicated PLL clk output pin
memory device: emmc 4.4.1
ftp tools: FlashFXP

transceiving mode(rgmii):
up link: emmc to pc
down link: pc to emmc

switch function(phy):
port 1 to port 2


we use imx6q and ksz8795 (datasheet in KSZ8795 - Interface and Networking - Ethernet Switches - Microcontrollers and Processors ) as ethernet partner, the ksz8795's switch function is nomal when we make a 4GB file transceiving deal by FlashFXP between them. however when we use rgmii to transceiving 4GB file by FlashFXP,we find the transceiving encounter several abnormal stops(sometimes the transceiving is normal,sometimes it's abnormal, the transceiving seems to be unstable ), we print all register when the deal is in the normal transceiving (normal mode)and when the deal is stop (abnormal mode),someuseful information is as below.

1. in one deal there are phenomenons like this:
1.1 up link
normal mode :
imx6 register : 0x02188004 = 0x00000000(TXF=0 TXB=0 RXF=0), 0x02188008 = 0x2c000000(BABT=0 RXF=0 RXB=0)
phy register : 0x1e = 60(MDIX status= MDI-X)

abnormal mode :
imx6 register : 0x02188004 = 0x0e000000(TXF=1 TXB=1 RXF=1), 0x02188008 = 0x6f000000(BABT=1 RXF=1 RXB=1)
phy register : 0x1e = e0(MDIX status= MDI)

in this situation, when transceiving is stop, ksz8795 seems to make a MDI/MDI-X Auto-Negotiation,but we do
not change the transceiving environment, in additon ,we cannot understand why imx6q register have such
changes?


2. in another deal there are phenomenons like this:
2.1 up link
normal mode :
imx6 register : 0x02188004 = 0x00000000(TXF=0 TXB=0 RXF=0), 0x02188008 = 0x2c000000(BABT=0 RXF=0 RXB=0)
0x02188010 = 0x01000000(RADR=1), 0x02188014 = 0x01000000(TDAR=1)
phy register : no change

abnormal mode :
imx6 register : 0x02188004 = 0x0e000000(TXF=1 TXB=1 RXF=1), 0x02188008 = 0x6f000000(BABT=1 RXF=1 RXB=1)
0x02188010 = 0x00000000(RADR=0), 0x02188014 = 0x00000000(TDAR=0)
phy register : no change

in this situation,we cannot understand why imx6q register have such changes?


what can i do? which is abnormal? where is abnormal?
urgent waiting for your reply, thanks.

Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

1,010 Views
qq8341248
Contributor I

I choose another FTP software(cuteFTP) , however I find the problem still exist, maybe it will be a software or hardware problem, how  can i narrow down this problem?

0 Kudos
Reply

1,010 Views
igorpadykov
NXP Employee
NXP Employee

Hi  杰 王

please try to reproduce problem on i.MX6Q Sabre SD board with demo images from

i.MX Software|NXP 

Best regards
igor

0 Kudos
Reply

1,010 Views
igorpadykov
NXP Employee
NXP Employee

Hi  杰 王

you can narrow down problem trying to test without FlashFXP, with NXP software:

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-soft... 

If it will works fine, then problem may be with FlashFXP and issue may be posted on vendor forum

https://www.flashfxp.com/forum/ 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,010 Views
qq8341248
Contributor I

 Hi   igorpadykov 员工

  I have not found the suitable FTP software from the website you give,could you please give me a specific link?

Thanks a lot.

0 Kudos
Reply