Eth_43_PFE MasterProject_RDB2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Eth_43_PFE MasterProject_RDB2

Jump to solution
1,725 Views
won0020
Contributor III

Hello,
I use S32G-VPN-GDLBOX 900-47800 REV D1 with SW32G_RTD_4.4_4.0.2_D2306.

I am testing in the EB Tresos environment MasterProject_RDB2 from PFE-DRV_S32G_M7_MCAL_1.4.0. Ethernet ports PFE_MAC1 and PFE_MAC2 work fine, but I would like to use PFE_MAC0 ports 1 to 10. In EB Tresos I added "Use XPCS0" in SerdesChannel_0 for Serdes_1 and in Eth_43_PFE I changed EthCtrlPort from EMAC1 to EMAC0 for EthCtrlConfig_0.

Switch SW8 on the board is ON, SW10.1 ON, SW10.2 OFF, SW12.1 ON and SW12.2 OFF.
D33 lights up green.

Unfortunately, I am still not able to establish communication with PFE_MAC0 ports 1 to 10, so I would like to ask if anyone can think of a solution.

Thanks in advance for any reply.

Best regards
won0020, @tomasmrovec

0 Kudos
Reply
1 Solution
1,687 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @won0020,

Sorry for the late response, the team has been somewhat overloaded these pasts weeks.

About your problem, I can recommend checking S32G-VNP-RDB2 Ethernet Enablement
Guide in which you can see how to achieve different configurations of PFE outputs, in particular I can recommend checking section 4. PFE_MAC0(1G mode with SW8 On)  which is related to your problem.

alejandro_e_1-1728692470227.png

 

Please consider that you may need to request access to the SJA1110 SDK which requires to sign an NDA. To do that please contact your FAE/DFAE/NXP representative.

 

Let me know if this information was useful.

 

 

 

 

View solution in original post

8 Replies
1,688 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @won0020,

Sorry for the late response, the team has been somewhat overloaded these pasts weeks.

About your problem, I can recommend checking S32G-VNP-RDB2 Ethernet Enablement
Guide in which you can see how to achieve different configurations of PFE outputs, in particular I can recommend checking section 4. PFE_MAC0(1G mode with SW8 On)  which is related to your problem.

alejandro_e_1-1728692470227.png

 

Please consider that you may need to request access to the SJA1110 SDK which requires to sign an NDA. To do that please contact your FAE/DFAE/NXP representative.

 

Let me know if this information was useful.

 

 

 

 

1,609 Views
won0020
Contributor III
Hi,
I set McuGENCTRL1_EMAC0 Generic Control 1 under MCU control (MCU),
XPCS_0 Speed to 2500 MBPS (Serdes),
EthCtrlMacLayerSpeed to 2500M for EMAC0 (Eth_43_PFE),
and now I am able to use PFE_MAC0 with stock SJA1110 FW.
Thank you very much.
0 Kudos
Reply
1,596 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @won0020 ,

I'm glad to know that you are now able to use the setup you need. Thanks for accepting the answer as a correct solution!

Best regards,

Alejandro

0 Kudos
Reply
1,675 Views
won0020
Contributor III
Hi,
I am currently using a sja1110a using a gmac0 connection with an external cable. I asked a colleague who has an NDA to configure the sja1110a using the SDK to use pfe_mac0, I'll let you know if that helps.
Furthermore, no communication containing VLANs will pass through the switch. I suppose this can also be solved using the SDK.
0 Kudos
Reply
1,667 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @won0020 ,

Yes you can configure the VLAN in the SJA1110 switch itself, as you can see in the datasheet [page 3, Rev. 2 — 8 December 2023]:

alejandro_e_0-1728928228615.png

But you can also configure it in the GMAC of PFE of the S32G2 [page 2223(GMAC) and 2229(PFE), S32G2 Reference Manual, Rev. 8, February 2024]:

alejandro_e_3-1728928379866.png

alejandro_e_5-1728928431823.png

 

Let me know if you have any other question about this topic.

 

 

 

 

 

 

 

 

0 Kudos
Reply
1,647 Views
won0020
Contributor III
Hello,
I can set the VLAN tag in GMAC0 like this:

1) (Eth_FrameType)0x86DD

Gmac_Ip_VlanConfigType vlanConfig = {
.EnDoubleVlan = FALSE,
.EnSvlan = FALSE,
.OuterVlanIns = GMAC_VLAN_TAG_INSERTION,
.OuterVlanStrip = GMAC_VLAN_TAG_DO_NOT_STRIP,
};

Gmac_Ip_EnableVlan(INST_GMAC_0, &vlanConfig);
Gmac_Ip_SetTxOuterVlanTagForInsertion(INST_GMAC_0, 0, GMAC_VLAN_TYPE_C_VLAN, 2);

2) (Eth_FrameType)0x8100

uint8_t tst_ipv6_udp_frm_data[] =
{
/* VLAN Tag (2 bytes) */
0x00U, 0x02U,

/* Ethernet Type (2 bytes) */
0x86U, 0xDDU,
...
}

Both work when I connect GMAC0 directly to my Vector VN5610A, unfortunately when I connect GMAC0 through the SJA1110A. I can only receive messages when I remove the VLAN tag.
0 Kudos
Reply
1,639 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @won0020

This problem seems to be related to the SJA1110 internal FW/configuration. Unfortunately I cannot help you with that as it is out of my scope. Please a new questions in https://community.nxp.com/t5/Other-NXP-Products/bd-p/other, there someone should be able to help you with problems related to the SJA1110. I'm sorry for the inconveniences.

 

Let me know if this information was useful. 

0 Kudos
Reply
1,665 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello again @won0020,

This page may be useful for your application S32G-PFE-M-Master-A-Slave-Simple-Demo.

0 Kudos
Reply