Excessive latency and frame loss caused by LLCE_PFE

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

Excessive latency and frame loss caused by LLCE_PFE

493 次查看
liu823230301
Contributor I

Using the fast path of S32G's LLCE and PFE modules to implement multi-channel CAN to AVTP Ethernet packet conversion, experiencing excessive latency and frame loss. What are the common causes of these issues?

0 项奖励
回复
7 回复数

423 次查看
Joey_z
NXP Employee
NXP Employee

hi,liu823230301

Thank you for contacting us.

Which version of LLCE are you using? are you using the RDB2 or RDB3?

Do you use the LLCE_PFE demo?

BR

Joey

0 项奖励
回复

403 次查看
liu823230301
Contributor I

i use SW32_RTD_4.4_5.0.0_QLP03_D2505 and PFE-DRV_S32G_M7_MCAL_1.6.0 in S32G2 RD2.

 

 

I found that when using LLCE and PFE for Ethernet to CAN conversion, packet loss tends to occur when three Ethernet packets arrive concurrently.

When using LLCE and PFE in S32G for Ethernet to CAN conversion, what is the maximum number of Ethernet packets that LLCE and PFE can handle concurrently? Will packets be dropped if this number is exceeded?

0 项奖励
回复

375 次查看
Joey_z
NXP Employee
NXP Employee

hi,liu823230301

 

Thank you for your reply.

Do you use the ETH2CAN on one core or multi-core? What is the LLCE version?

You can try to add the buffer ("Llce_Af > Eth2Can > Number of Eth2Can Buffer (72 -> 255)") in the configuration.

BR

Joey

0 项奖励
回复

326 次查看
liu823230301
Contributor I

How to confirm whether Eth2can is running on a single core or multiple cores, and how to configure it for multi-core operation if needed.

LLCE version:   LLCE_1_0_10, and i have  use Eth2Can Buffer 255.

liu823230301_0-1756693023567.png

 

0 项奖励
回复

306 次查看
Joey_z
NXP Employee
NXP Employee

hi,liu823230301

Thank you for your reply.

For multi-core usage cases, you can refer to AN13750.LLCE. For more specific usage methods, you can refer to AN13423 to obtain more information and have more detailed buffer setting suggestions.

Joey_z_0-1756709939621.png

https://www.nxp.com.cn/docs/en/application-note/AN13423.pdf

Hope it can help you.

BR

Joey

 

 

 

0 项奖励
回复

303 次查看
liu823230301
Contributor I
Now it is suspected that packets are being dropped by the LLCE_PFE during Ethernet-to-CAN conversion. When the Ethernet concurrency is low, no packets are dropped, but high Ethernet concurrency causes frame loss after conversion.
Are there any specific rules for configuring the following parameters?
Eth->EthCtrlConfig->EthCtrlConfigIngressFifo->EthCtrlConfigIngressFifoBufTotal、
Eth->General->VarEthBmu2BufCnt、
Llce_AF->Eth2Can->Number of Eth2Can buffers
0 项奖励
回复

263 次查看
Joey_z
NXP Employee
NXP Employee

hi,liu823230301

Do you use the demo of can_llce-pfe_eth? And did you make any other modifications to it during the test? Could you share how you tested it? For example, the set network rate and the method of capturing frames.

About the information:

Eth->EthCtrlConfig->EthCtrlConfigIngressFifo->EthCtrlConfigIngressFifoBufTotal.

>>>number of transmit buffers. The minimum value is 2 and maximum 512.It should store the frames just received from the physical Ethernet to prevent packet loss at the MAC layer.

Eth->General->VarEthBmu2BufCnt.

>>>Provide a unified 2048B buffer block for all EMAC and HIF for internal processing and forwarding by PFE.
Llce_AF->Eth2Can->Number of Eth2Can buffers.

>>>Number of buffers to create in memory for Eth2Can usage. Must be >=73.

Your Settings should meet the setting requirements. The application routine serves as a reference.

BR

Joey

 

0 项奖励
回复