Ethernet receiving with M4 core

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ethernet receiving with M4 core

1,420件の閲覧回数
xingshengwan
Contributor I

I am working on ENET driver on the M4 core of IMX6 solox board. I met an issue that it of ENET receiving.

1. My ENET driver can send the packet out success. And it triggered interrupt while sending completes.

2. For receiving:

   2.a. Most time, there is no receiving interrupt hit. But I can see some data received (not full frame) in the descriptor buffer.

   2.b. Some time, it triggers receiving interrupt once. But then it does not trigger receiving interrupt any more. I can still see some data received (not full frame)  in the next descriptor buffer.

   2.c. On both 2.a and 2.b, The bit ENETx_EIR.RXB is set (Indicates a receive buffer descriptor is not the last in the frame has been updated). 

Does any one meet such issue?

Thanks.

ラベル(1)
タグ(2)
0 件の賞賛
返信
2 返答(返信)

1,298件の閲覧回数
xingshengwan
Contributor I

Hi Igor,

We have used this same driver on i.MX6UL(L), Kinetis, Vybrid, and ColdFire, and they do not have this problem. What changed on the i.MX6 SoloX that would cause this?

I also tried to enable loopback. The receive can only receive 16 bytes data, but the length it shows 0x600 byte.

Xingsheng

0 件の賞賛
返信

1,298件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Xingsheng

for i.MX6SX fec OS-less example one can look at uboot fec driver

fec_mxc.c\net\drivers - uboot-imx - i.MX U-Boot 

also may be useful On-Board Diagnostic Suit for the i.MX28

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

0 件の賞賛
返信