how to ETH TO CAN?

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

how to ETH TO CAN?

Jump to solution
2,605 Views
fenghua_jiang
Contributor IV

HI ,

The board is s32g274,follow the GoldVIP-Developer-Guide.pdf( 3.2 CAN Gateway),

test CAN to Ethernet successfull,aux0  receives the AVTP packets.

When I send AVTP packets from aux0, the LLCE_CAN1 cann't receive can packets.

Can you give me some suggestions?

0 Kudos
Reply
1 Solution
2,511 Views
fenghua_jiang
Contributor IV
Hi,
Thank you for your reply.
Follow S32G_LLCE_to_PFE_Demo_V1-2022.320.pdf and RTD v3.0.2 HF01 and LLCE v1.0.4 ,I have received packets from P3A but I cann't receice any can packet from LLCE_CAN0 or LLCE_CAN1.
ALso, when I send UDP packets from P3A, there is no can packet from LLCE_CAN0 or LLCE_CAN1.

View solution in original post

0 Kudos
Reply
11 Replies
2,559 Views
shanlan123
Contributor II

你是怎么运行的呢?是运行 can-to-eth.sh 吗?但是我没找到这个脚本,这个脚本在哪里呢?

0 Kudos
Reply
2,550 Views
fenghua_jiang
Contributor IV
下载GoldVIP-S32G2-1.5.0-binaries.zip,然后里面有个GoldVIP-User-Manual.pdf,按照这个操作
0 Kudos
Reply
2,584 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We are seeing the GoldVIP developers guide, looking at Page 7, the CAN TO ETH path seems to be marked a one-way path, giving to understand that the inverse it is not implemented.

We can recommend looking into the provided "llce_sample_app_pfe" on the LLCE Firmware available on the "Automotive Software Package Manager" under the S32G2 product page (link: S32G2 Safe and Secure Vehicle Network Processor | NXP Semiconductors). The project states the following:

"This is a sample application to demonstrate the LLCE-PFE Can-to-Ethernet and Ethernet-to-Can bridges, using the MCAL drivers and customized firmware."

Please, let us know.

0 Kudos
Reply
2,568 Views
fenghua_jiang
Contributor IV
Hi,
I also have a question about Can-to-eth .
I set Can2EthRouting Table as attached picture,but I can not receive any packets from pfe2.
0 Kudos
Reply
2,566 Views
fenghua_jiang
Contributor IV

llce_af.png

0 Kudos
Reply
2,538 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There is a known issue on the ETH2CAN example provided on LLCE v1.0.4. You can see the following thread for the fix:

Solved: S32G2 LLCE-1.0.4 can2eth - NXP Community

Also, there was an update on AN13423 (link: AN13423: Using CAN2CAN, CAN2ETH and ETH2CAN Features of LLCE on S32G Application Note (nxp.com)) where the different configurations to both CAN2CAN and CAN2ETH examples are explained.

Please, let us know.

0 Kudos
Reply
2,533 Views
viswa_kondapall
Contributor IV

Hi Danel,

An13423 document has naming convention difference is the project creating. We followed An13423 document and version or target mismatch error we got in EB tresos and S32 design studio. 

CAN2CAN example application MCU name is "S32G2XXM7" but EBtresos and S32 Design studio -error : version mitch or target mismatch :

viswa_kondapall_0-1679339508226.png

 

Goldvip binaries workspace projects  MCU name as given as "S32G27X" which is working fine with out errors. 

viswa_kondapall_1-1679339548976.png

 

regards,

Viswanath

 

0 Kudos
Reply
2,527 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

The project you have imported to EB Tresos needs the specific plugins to work with. We are seeing that you may not have these plugins installed.

As for the needed drivers to work with the CAN2CAN project, you need the following:

  • RTD v3.0.2 HF01
  • LLCE v1.0.4

If you already have them installed, you need to copy the plugins into the EB/tresos/plugins directory and reload EB Tresos and import the project again (due to possibly EB tresos deleting some modules). The plugins should be available under the following addresses (or similar):

  • RTD: "C:\nxp\S32DS.3.4\S32DS\software\PlatformSDK_S32XX_2022_03\SW32_RTD_4_4_3_0_2_D2203"
  • LLCE: "C:\nxp\S32G_LLCE_1_0_4\plugins\eclipse\plugins"

This should help with the non-available modules.

Also, this same CAN2CAN example is provided on S32 Design Studio, which may help depending on your current workflow. Still, this needs the above-mentioned drivers to work with it.

There is also the starter guide that provides insight on the setting steps needed to work with the LLCE Firmware. This should be available under the following address (or similar):

"C:/nxp/S32G_LLCE_1_0_4/firmware/llce_interface/doc/LLCE_getting_started_guide.pdf"

Please, let us know.

0 Kudos
Reply
2,512 Views
fenghua_jiang
Contributor IV
Hi,
Thank you for your reply.
Follow S32G_LLCE_to_PFE_Demo_V1-2022.320.pdf and RTD v3.0.2 HF01 and LLCE v1.0.4 ,I have received packets from P3A but I cann't receice any can packet from LLCE_CAN0 or LLCE_CAN1.
ALso, when I send UDP packets from P3A, there is no can packet from LLCE_CAN0 or LLCE_CAN1.

0 Kudos
Reply
2,495 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

AN13423 shows the following [Page 22, Using CAN2CAN, CAN2ETH and ETH2CAN Features of LLCE on S32G, Rev. 1, 03/2023]:

"For ETH2CAN, you can play it with CAN2ETH setup as is. Running the same elf file as CAN2ETH
(use same cmm also), LLCE performs ETH2CAN. If you will simply send back the CAN2ETH UDP
packet to S32G, you can play the UDP ETH2CAN example easily. "

Have you tried the steps shown on the AN? the guide you are showing seems useful, but it seems it is a year old. Changes have been made on the LLCE Firmware, for which we might recommend following the AN to understand where your problem is happening.

Please, let us know.

0 Kudos
Reply
2,479 Views
fenghua_jiang
Contributor IV
HI,
I think so.
But ,The CAN2ETH test was successfull,and the ETH2CAN test was failed.
THE UDP packet:
0x66,0x55,0x44,0x33,0x22,0x11,0x00,0x11,0x22,0x33,0x44,0x55,0x22,0xf0
0x82,0x80,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x04,0x00,0x01,0x00,0x00,0x00,0xe4,0x00,0x01,0x02,
0x03,0x04,0x05,0x66,0x77,0x04,0x04,0x00,0x01,0x00,0x00,0x00,0xe4,0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77.
Is there a problem with the UDP packet?
0 Kudos
Reply