S32SDK lwip issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,235件の閲覧回数
nxf55006
NXP Employee
NXP Employee

Hi, team

I am testing S32R294 ENET using S32SDK  lwip TCP/IP stack project. I have some issues.

when I configure MII mode as RGMII, MII speed as 10M. The ENET works normal and  I  pinged my own address and it was OK.

pastedImage_1.png

However, when I change the MII speed to 100M or 1000M. It can not work.

How can I solve this problem?

Thanks

Andy

ラベル(1)
0 件の賞賛
1 解決策
2,016件の閲覧回数
ToHoangLinh
NXP Employee
NXP Employee

Hi,

PHY_KSZ9031_SPEED10_100 is still guarded one more by if (enetconfig.miiSpeed == 10 or 100). If you choose MII speed 10/100, then we will remove 1000Mbps and restart negotiation with 10/100 speed only for KSZ9031.

However, if you choose 1000Mbps since the beginning, that restriction (if condition) will not be reached or executed.

From my experience, you are having issue of KSZ9031 negotiation for speed 1Gbps. Your clock configuration is correct.

  • Please try import example lwip_s32r294, and set speed to 1Gbps (default is 100Mbps) and see if it works for you.

We are still running tcpip S32R294 nightly and functional tests still passed (we can detect and ping the board with 1Gbps).

元の投稿で解決策を見る

0 件の賞賛
5 返答(返信)
2,016件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Andy,

here is the feedback from our lwip expert:

It works with 1GB RGMII in tcpip, we already supported this speed for S32R294. I confirmed.

 

In customer question on community, I understand that he is using default configuration of clock (without modification for ENET Clock)

 

You can checkout lwip_s32r294 example, where we configured default RGMII/1GB speed already.

 

The ENET clock (ENET0_CLK, ENET0_TIME_CLK) should be configured like this for 1GB:

pastedImage_1.png

Regards,

Lukas

0 件の賞賛
2,016件の閲覧回数
nxf55006
NXP Employee
NXP Employee

Hi, Lukas

Thanks for you information. 

I have correct my clock configuration. And it worked OK with RGMII 100Mbps. However it still failed with 1000Mbps. I noticed there was a macro called "PHY_KSZ9031_SPEED10_100".  Does it limit the transmission rate?

Here is my ENET clock configuration.

pastedImage_1.png

pastedImage_2.png

Thanks

Andy

0 件の賞賛
2,017件の閲覧回数
ToHoangLinh
NXP Employee
NXP Employee

Hi,

PHY_KSZ9031_SPEED10_100 is still guarded one more by if (enetconfig.miiSpeed == 10 or 100). If you choose MII speed 10/100, then we will remove 1000Mbps and restart negotiation with 10/100 speed only for KSZ9031.

However, if you choose 1000Mbps since the beginning, that restriction (if condition) will not be reached or executed.

From my experience, you are having issue of KSZ9031 negotiation for speed 1Gbps. Your clock configuration is correct.

  • Please try import example lwip_s32r294, and set speed to 1Gbps (default is 100Mbps) and see if it works for you.

We are still running tcpip S32R294 nightly and functional tests still passed (we can detect and ping the board with 1Gbps).

0 件の賞賛
2,016件の閲覧回数
nxf55006
NXP Employee
NXP Employee

Hi, 

Thanks for your information. I have imported example lwip_s32r29 demo and just chane speed to 1Gbps. It still does not work. However when I run the enet_ping_s32r294 demo it works OK.

Could you please provide me the lwip demo passed test?

Thanks

Andy

0 件の賞賛
2,016件の閲覧回数
taibuivan
NXP Employee
NXP Employee

Hi Andy,

If you want to run example lwip_s32r294 demo with speed 1 Gbps, you should configure as below:

- In TCPIP configuration: set TX ring size and RX ring size to 5.

- In pin configuration: setup Ethernet Transmit Data 0 -> 3 (PD[0], PD[3], PD[4], PG[10]) and Ethernet Transmit Enable (PC[15]) in ENET tab as figure below

pastedImage_2.png

Thanks,

Tai Bui Van