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)
Change all can2net instances to pfe_mac2
Looking forward to your response.
解決済! 解決策の投稿を見る。
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.
Hope it can help you.
BR
Joey
Hi,youke
Thank you for contacting us.
Which version of LLCE are you using? Do you plan use the pfe SGMII mode?
BR
Joey
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,
hi,youke
Thank you for your reply.
I think you can focus on this structure.
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
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?
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.
Hope it can help you.
BR
Joey
Hi,joey
Thank you for your answer.