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?
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?
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
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.
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.
https://www.nxp.com.cn/docs/en/application-note/AN13423.pdf
Hope it can help you.
BR
Joey
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