S32G2 can2net modified to pfe_mac2

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

S32G2 can2net modified to pfe_mac2

Jump to solution
528 Views
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.

 

 

Tags (3)
0 Kudos
Reply
1 Solution
374 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
499 Views
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 Kudos
Reply
473 Views
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 Kudos
Reply
448 Views
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 Kudos
Reply
434 Views
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 Kudos
Reply
375 Views
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 Kudos
Reply
341 Views
youke
Contributor III

Hi,joey

Thank you for your answer.

0 Kudos
Reply