Hi,
I'm working on setting S32G RDB2 SerDes_1 lan0 and lan1 to SGMII mode with RTD, FreeRTOS and LWIP on M7 core.
I've got a few questions:
1. If SerDes_1 lan0 and lan1 working in SGMII mode, it needs to work with PFE_MAC0 and PFE_MAC1?
2. If so, can you provide the new PFE-demo for S32DS 3.5?
3. If not, how to work?
Thanks.
Hi,
Below will be some comments on regards of your questions:
Q1 >> If SerDes_1 lan0 and lan1 working in SGMII mode, it needs to work with PFE_MAC0 and PFE_MAC1?
A1 >> For SerDes_1, your assumption is correct. You should be setting SerDes_1 to Mode 3 for both Lan0/1 to be configured as SGMII, for which PFE_MAC0 and PFE_MAC1 will be available. Table 397 [Page 2445, S32G2 Reference Manual, Rev. 6, 11/2022] provides this information:
Q2 >> If so, can you provide the new PFE-demo for S32DS 3.5?
A2 >> In PFE-demo, PFE is configured on EB, then the configuration is imported to S32DS. You could follow the information provided on the "GUIDE TO ENABLE PFE WITH LWIP BASED ON RTD" to try and migrate the project to S32DS v3.5.
Since this guide is outdated, let us know any problems you come into. Just, verify that all packages are compatible with S32DS v3.5 (and with each other), for you to not have any compatibility problems.
Q3 >> If not, how to work?
A3 >> Maybe we already answer this on A2. You should be able to generate the configuration for PFE on EB, then importing it as per the guide explains. This guide should be available under:
"PFE-demo/RTD_PFE_DEMO/documentation/Guide to enable PFE with LWIP based on RTD.pdf"
Please, let us know.
Hi Daniel,
For A1, can SerDes SGMII work without PFE? If so, how it works with RTD, FreeRTOS and LWIP?
For A2, I check the guide "Enable PFE ethernet interface with LWIP and FreeRTOS on M7 core .pdf" but cannot find the "S32G2 Real Time Drivers 4.4 Version 1.0.0 HF01" and "S32G PFE MCAL 4.4 driver
SW32G2XX_MCL01_0.8.2_D2011" on NXP website, can you provide it?
Thanks.
Hi,
SerDes under SGMII configuration without PFE is only available under SerDes_0 Mode 1 or 3, which mode 1 uses PCIe on Lan 0 and GMAC0 on Lan1 and mode 3 uses GMAC0 under Lan0 and PFE_MAC2 under Lan1. Table below:
Since you are working with the RDB2 platform, SerDes_0 is not available for this configuration modes. This is shown on the table provided on Sheet 16 of the schematic for RDB2:
As for the packages, we are seeing that RTD v1.0.0 HF01 should be available on Flexera/Flexnet under the "Previous" tab. This also stays true for the PFE package.
We have also found the following post that provides more or less the same implementation for PFE under EB but with more recent package versions:
S32G PFE Master Demo building on M7 - NXP Community
Please, let us know
Hi Chih-Hung,
We also working the same example on S32DS 3.4. pfe_demo code is compiling and we are getting header files missing. Like Compiler.h, S32G274A_SCB.h, Devassert.h. and we are unable to progress. could you share here -- how you fixed from your side. Once this is compiled then we are going to add Sedes folder here.
Regards,
Viswanath K
Hi Chih-Hung,
We also working on the same. RTD-PFE-Freertos witth LWIP on M7 core.
We are unable to progress in compile. we are getting header files missing. could you please help us too.
We imported PFE-demo in S32 Ds 3.4. only. If PFE-demo is loaded then we are waiting to add serdes in the same build. we are working anther method to enable CAN2ETH in Can2can project by ourself only in configuring. anyone of the method should work.
Regards,
Viswanath K