S32G2 can2net modified to pfe_mac2

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

S32G2 can2net modified to pfe_mac2

跳至解决方案
532 次查看
youke
Contributor III

Hi, NXP

I am currently testing the can2net functionality using the s32g2rdb hardware. I have implemented can2net by referring to AN13423, with net using pfe_mac1, and can obtain net messages from the hardware P3A interface.
Since we need to achieve simultaneous startup of the A+M cores, the A core uses gmac0, which conflicts with pfe_mac1 used in can2net. We are now considering switching to pfe_mac2 for transmission. I have modified the EB as follows. After the modification, corresponding data has been input to CAN, but no network data is being transmitted from P3B. Please assist in troubleshooting;

Translated with DeepL.com (free version)

youke_0-1749611936128.pngyouke_1-1749611978901.png

Change all can2net instances to pfe_mac2

youke_3-1749612084189.png

Looking forward to your response.

 

 

标记 (3)
0 项奖励
回复
1 解答
378 次查看
Joey_z
NXP Employee
NXP Employee

hi,youke

Thank you for your reply.

You can refer to the CAN Gateway demo in goldvip for the multicore LLCE.  CAN frames are transmitted from M core to A core via CAN2ETH.

Joey_z_0-1750054575034.png

Hope it can help you.

BR

Joey

在原帖中查看解决方案

0 项奖励
回复
6 回复数
503 次查看
Joey_z
NXP Employee
NXP Employee

Hi,youke

Thank you for contacting us.

Which version of LLCE are you using? Do you plan use the pfe SGMII mode?

BR

Joey

0 项奖励
回复
477 次查看
youke
Contributor III

Hi,joey

I have solved the above problem by modifying the code and reading the data from pfe2.
Here are some new questions:
1. rdb2 pfe_mac2 is connected to ksz9031 externally. If we connect 88q2112 automotive Ethernet conversion externally to pfe_mac2 on our own board, what modifications are needed to the M-core driver in the current can2net project?
2. If the A core acts as the pfe master, can the M core still transmit CAN data via can2net from pfe_mac0 and pfe_mac2 after starting as the pfe slave?
Thank,

0 项奖励
回复
452 次查看
Joey_z
NXP Employee
NXP Employee

hi,youke

Thank you for your reply.

I think you can focus on this structure.

Joey_z_0-1749801269477.png

Also, do you want eth2eth functionality? Refer to manual, LLCE only supports for can2can/can2eth/eth2can in demo project. May modify the FDK package to support more function, but it need more purchase.

BR

Joey

0 项奖励
回复
438 次查看
youke
Contributor III

Hi,joey

We do not use net2net.
Thank you for your guidance. I think this may resolve my first question.
I would like to add a second question. After the A core uses the pfe master driver pfe_mac0 (sja1110) and pfe_mac2 (88q2112 phy), can the M core be used as a slave mode to use pfe_mac0 and pfe_mac2 for can2net output?

0 项奖励
回复
379 次查看
Joey_z
NXP Employee
NXP Employee

hi,youke

Thank you for your reply.

You can refer to the CAN Gateway demo in goldvip for the multicore LLCE.  CAN frames are transmitted from M core to A core via CAN2ETH.

Joey_z_0-1750054575034.png

Hope it can help you.

BR

Joey

0 项奖励
回复
345 次查看
youke
Contributor III

Hi,joey

Thank you for your answer.

0 项奖励
回复