Eth_43_PFE MasterProject_RDB2

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

Eth_43_PFE MasterProject_RDB2

跳至解决方案
1,732 次查看
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 项奖励
回复
1 解答
1,694 次查看
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.

 

 

 

 

在原帖中查看解决方案

8 回复数
1,695 次查看
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,616 次查看
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 项奖励
回复
1,603 次查看
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 项奖励
回复
1,682 次查看
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 项奖励
回复
1,674 次查看
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 项奖励
回复
1,654 次查看
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 项奖励
回复
1,646 次查看
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 项奖励
回复
1,672 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1968680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEth_43_PFE%20%E4%B8%BB%E9%A1%B9%E7%9B%AE_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1968680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E4%BD%BF%E7%94%A8%20S32G-VPN-GDLBOX%20900-47800%20REV%20D1%20%E5%92%8C%20SW32G_RTD_4.4_4.0.2_D2306%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%20EB%20Tresos%20%E7%8E%AF%E5%A2%83%20MasterProject_RDB2%20%E4%B8%AD%E4%BB%8E%20PFE-DRV_S32G_M7_MCAL_1.4.0%20%E8%BF%9B%E8%A1%8C%E6%B5%8B%E8%AF%95%E3%80%82%E4%BB%A5%E5%A4%AA%E7%BD%91%E7%AB%AF%E5%8F%A3%20PFE_MAC1%20%E5%92%8C%20PFE_MAC2%20%E5%B7%A5%E4%BD%9C%E6%AD%A3%E5%B8%B8%EF%BC%8C%E4%BD%86%E6%88%91%E6%83%B3%E4%BD%BF%E7%94%A8%20PFE_MAC0%20%E7%AB%AF%E5%8F%A3%201%20%E5%88%B0%2010%E3%80%82%E5%9C%A8%20EB%20Tresos%20%E4%B8%AD%EF%BC%8C%E6%88%91%E5%9C%A8%20SerdesChannel_0%20%E4%B8%AD%E4%B8%BA%20Serdes_1%20%E6%B7%BB%E5%8A%A0%E4%BA%86%E2%80%9C%E4%BD%BF%E7%94%A8%20XPCS0%E2%80%9D%EF%BC%8C%E5%B9%B6%E5%9C%A8%20Eth_43_PFE%20%E4%B8%AD%E5%B0%86%20EthCtrlPort%20%E4%BB%8E%20EMAC1%20%E6%9B%B4%E6%94%B9%E4%B8%BA%20EthCtrlConfig_0%20%E7%9A%84%20EthCtrlPort%20%E4%BB%8E%20EMAC0%E3%80%82%3C%2FP%3E%3CP%3E%E6%9D%BF%E4%B8%8A%E7%9A%84%E5%BC%80%E5%85%B3SW8%E5%A4%84%E4%BA%8EON%E7%8A%B6%E6%80%81%EF%BC%8CSW10.1%E5%A4%84%E4%BA%8EON%E7%8A%B6%E6%80%81%EF%BC%8CSW10.2%E5%A4%84%E4%BA%8EOFF%E7%8A%B6%E6%80%81%EF%BC%8CSW12.1%E5%A4%84%E4%BA%8EON%E7%8A%B6%E6%80%81%EF%BC%8CSW12.2%E5%A4%84%E4%BA%8EOFF%E7%8A%B6%E6%80%81%E7%A6%BB%E5%BC%80%E3%80%82%3CBR%20%2F%3E%20D33%20%E4%BA%AE%E8%B5%B7%E7%BB%BF%E7%81%AF%E3%80%82%3C%2FP%3E%3CP%3E%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%EF%BC%8C%E6%88%91%E4%BB%8D%E7%84%B6%E6%97%A0%E6%B3%95%E4%B8%8E%20PFE_MAC0%20%E7%AB%AF%E5%8F%A3%201%20%E5%88%B0%2010%20%E5%BB%BA%E7%AB%8B%E9%80%9A%E4%BF%A1%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E6%83%B3%E9%97%AE%E4%B8%80%E4%B8%8B%E6%98%AF%E5%90%A6%E6%9C%89%E4%BA%BA%E8%83%BD%E6%83%B3%E5%88%B0%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E3%80%82%3C%2FP%3E%3CP%3E%E6%8F%90%E5%89%8D%E6%84%9F%E8%B0%A2%E4%BB%BB%E4%BD%95%E5%9B%9E%E5%A4%8D%E3%80%82%3C%2FP%3E%3CP%3E%E6%AD%A4%E8%87%B4%3CBR%20%2F%3Ewon0020%EF%BC%8C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F77922%22%20target%3D%22_blank%22%3E%40tomasmrovec%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1975150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AEth_43_PFE%20MasterProject_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1975150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E5%B0%86%20McuGENCTRL1_EMAC0%20%E9%80%9A%E7%94%A8%E6%8E%A7%E5%88%B6%201%20%E8%AE%BE%E7%BD%AE%E4%B8%BA%20MCU%20%E6%8E%A7%E5%88%B6%EF%BC%88MCU%EF%BC%89%EF%BC%8C%3CBR%20%2F%3E%20XPCS_0%20%E9%80%9F%E5%BA%A6%E8%BE%BE%202500%20MBPS%20(Serdes)%EF%BC%8C%3CBR%20%2F%3E%20EMAC0%20(Eth_43_PFE)%20%E7%9A%84%20EthCtrlMacLayerSpeed%20%E4%B8%BA%202500M%EF%BC%8C%3CBR%20%2F%3E%E7%8E%B0%E5%9C%A8%E6%88%91%E5%8F%AF%E4%BB%A5%E5%B0%86%20PFE_MAC0%20%E4%B8%8E%E5%BA%93%E5%AD%98%20SJA1110%20FW%20%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%E3%80%82%3CBR%20%2F%3E%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%B0%A2%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1974501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AEth_43_PFE%20MasterProject_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F207195%22%20target%3D%22_blank%22%3E%40won0020%3C%2FA%3E%20%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E8%AF%A5%E9%97%AE%E9%A2%98%E4%BC%BC%E4%B9%8E%E4%B8%8E%20SJA1110%20%E5%86%85%E9%83%A8%20FW%2F%E9%85%8D%E7%BD%AE%E6%9C%89%E5%85%B3%E3%80%82%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%E6%88%91%E6%97%A0%E6%B3%95%E5%B8%AE%E5%8A%A9%E4%BD%A0%EF%BC%8C%E5%9B%A0%E4%B8%BA%E8%BF%99%E8%B6%85%E5%87%BA%E4%BA%86%E6%88%91%E7%9A%84%E8%83%BD%E5%8A%9B%E8%8C%83%E5%9B%B4%E3%80%82%E8%AF%B7%E5%9C%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FOther-NXP-Products%2Fbd-p%2Fother%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FOther-NXP-Products%2Fbd-p%2Fother%3C%2FA%3E%E4%B8%AD%E6%8F%90%E5%87%BA%E6%96%B0%E9%97%AE%E9%A2%98%EF%BC%8C%E9%82%A3%E9%87%8C%E5%BA%94%E8%AF%A5%E6%9C%89%E4%BA%BA%E8%83%BD%E5%A4%9F%E5%B8%AE%E5%8A%A9%E6%82%A8%E8%A7%A3%E5%86%B3%E4%B8%8E%20SJA1110%20%E7%9B%B8%E5%85%B3%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%E5%BE%88%E6%8A%B1%E6%AD%89%E9%80%A0%E6%88%90%E6%82%A8%E7%9A%84%E4%B8%8D%E4%BE%BF%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%E6%AD%A4%E4%BF%A1%E6%81%AF%E6%9C%89%E7%94%A8%EF%BC%8C%E8%AF%B7%E5%91%8A%E8%AF%89%E6%88%91%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1974056%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AEth_43_PFE%20MasterProject_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974056%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E5%8F%AF%E4%BB%A5%E5%83%8F%E8%BF%99%E6%A0%B7%E5%9C%A8%20GMAC0%20%E4%B8%AD%E8%AE%BE%E7%BD%AE%20VLAN%20%E6%A0%87%E7%AD%BE%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%201%EF%BC%89%20%EF%BC%88Eth_FrameType%EF%BC%890x86DD%3CBR%20%2F%3E%3CBR%20%2F%3E%20Gmac_Ip_VlanConfigType%20vlanConfig%20%3D%20%7B%3CBR%20%2F%3E%20.EnDoubleVlan%20%3D%20FALSE%EF%BC%8C%3CBR%20%2F%3E%20.EnSvlan%20%3D%20FALSE%EF%BC%8C%3CBR%20%2F%3E%20.OuterVlanIns%20%3D%20GMAC_VLAN_TAG_INSERTION%EF%BC%8C%3CBR%20%2F%3E%20.OuterVlanStrip%20%3D%20GMAC_VLAN_TAG_DO_NOT_STRIP%EF%BC%8C%3CBR%20%2F%3E%20%7D%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%20Gmac_Ip_EnableVlan%EF%BC%88INST_GMAC_0%EF%BC%8C%EF%BC%86vlanConfig%EF%BC%89%EF%BC%9B%3CBR%20%2F%3E%20Gmac_Ip_SetTxOuterVlanTagForInsertion%EF%BC%88INST_GMAC_0%EF%BC%8C0%EF%BC%8CGMAC_VLAN_TYPE_C_VLAN%EF%BC%8C2%EF%BC%89%EF%BC%9B%3CBR%20%2F%3E%3CBR%20%2F%3E%202%EF%BC%89%20%EF%BC%88Eth_FrameType%EF%BC%890x8100%3CBR%20%2F%3E%3CBR%20%2F%3E%20uint8_t%20tst_ipv6_udp_frm_data%5B%5D%20%3D%3CBR%20%2F%3E%20%7B%3CBR%20%2F%3E%20%2F*%20VLAN%E6%A0%87%E7%AD%BE%EF%BC%882%E5%AD%97%E8%8A%82%EF%BC%89*%2F%3CBR%20%2F%3E%200x00U%EF%BC%8C0x02U%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%20%2F*%20%E4%BB%A5%E5%A4%AA%E7%BD%91%E7%B1%BB%E5%9E%8B%EF%BC%882%E5%AD%97%E8%8A%82%EF%BC%89%20*%2F%3CBR%20%2F%3E%200x86U%2C%200xDDU%2C%3CBR%20%2F%3E%20...%3CBR%20%2F%3E%20%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%BD%93%E6%88%91%E5%B0%86%20GMAC0%20%E7%9B%B4%E6%8E%A5%E8%BF%9E%E6%8E%A5%E5%88%B0%E6%88%91%E7%9A%84%20Vector%20VN5610A%20%E6%97%B6%EF%BC%8C%E4%B8%A4%E8%80%85%E9%83%BD%E5%8F%AF%E4%BB%A5%E5%B7%A5%E4%BD%9C%EF%BC%8C%E4%BD%86%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E9%80%9A%E8%BF%87%20SJA1110A%20%E8%BF%9E%E6%8E%A5%20GMAC0%20%E6%97%B6%E3%80%82%E5%8F%AA%E6%9C%89%E5%88%A0%E9%99%A4VLAN%E6%A0%87%E7%AD%BE%E6%89%8D%E8%83%BD%E6%8E%A5%E6%94%B6%E6%B6%88%E6%81%AF%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1973547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AEth_43_PFE%20MasterProject_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1973547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F207195%22%20target%3D%22_blank%22%3E%40won0020%3C%2FA%3E%20%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E9%A1%B5%E9%9D%A2%E5%8F%AF%E8%83%BD%E5%AF%B9%E6%82%A8%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Designs-Knowledge-Base%2FS32G-PFE-M-Master-A-Slave-Simple-Demo%2Fta-p%2F1637946%22%20target%3D%22_blank%22%3ES32G-PFE-M-Master-A-Slave-Simple-Demo%3C%2FA%3E%E6%9C%89%E7%94%A8%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1973429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AEth_43_PFE%20MasterProject_RDB2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1973429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20sja1110a%EF%BC%8C%E9%80%9A%E8%BF%87%E5%A4%96%E9%83%A8%E7%94%B5%E7%BC%86%E8%BF%9B%E8%A1%8C%20gmac0%20%E8%BF%9E%E6%8E%A5%E3%80%82%E6%88%91%E8%AF%B7%E4%B8%80%E4%BD%8D%E6%9C%89%E4%BF%9D%E5%AF%86%E5%8D%8F%E8%AE%AE%E7%9A%84%E5%90%8C%E4%BA%8B%E4%BD%BF%E7%94%A8%20SDK%20%E9%85%8D%E7%BD%AE%20sja1110a%20%E4%BB%A5%E4%BD%BF%E7%94%A8%20pfe_mac0%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%9C%89%E5%B8%AE%E5%8A%A9%E7%9A%84%E8%AF%9D%E6%88%91%E4%BC%9A%E5%91%8A%E8%AF%89%E4%BD%A0%E3%80%82%3CBR%20%2F%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E4%BB%BB%E4%BD%95%E5%8C%85%E5%90%AB%20VLAN%20%E7%9A%84%E9%80%9A%E4%BF%A1%E9%83%BD%E4%B8%8D%E4%BC%9A%E9%80%9A%E8%BF%87%E4%BA%A4%E6%8D%A2%E6%9C%BA%E3%80%82%E6%88%91%E6%83%B3%E8%BF%99%E4%B9%9F%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%20SDK%20%E6%9D%A5%E8%A7%A3%E5%86%B3%E3%80%82%3C%2FLINGO-BODY%3E