llce_sample_app_pfe ETH2CAN problem

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

llce_sample_app_pfe ETH2CAN problem

Jump to solution
4,219 Views
seeu
Contributor III

Hi,

I use llce_sample_app_pfe to run ETH2CAN can't work normally, Because I can't receive the  CAN frame normally. But in this sample I can get the acf-can frame,whether this routine can only implement CAN2ETH, but not ETH2CAN?

Also, in data.dump debug_buff, there are some information  Client's (1) RX queue is full. Frame dropped. Is this normal phenomenon?

Snipaste_2023-07-13_09-59-15.png

Snipaste_2023-07-13_09-59-51.png

  

0 Kudos
Reply
1 Solution
3,566 Views
seeu
Contributor III

Hi,

I chang the value from 72 to 73, and re-open trace32 GUI, now it can run normally.But I don't know why I fail last time.

View solution in original post

0 Kudos
Reply
9 Replies
4,207 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Can you let us know which RTD/LLCE/PFE version are you using? Also, are you using any NXP platforms? Or is this a custom board?

Please, let us know.

0 Kudos
Reply
4,191 Views
seeu
Contributor III

hi,

SW32G_RTD_4.4_3.0.2, S32G_LLCE_1_0_4, PFE-DRV_S32G_M7_MCAL_BETA_0.9.7, target board S32G-VNP-RDB2.

0 Kudos
Reply
4,175 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the information. Ther are 2 known-issues under the above mentioned LLCE v1.0.4 example. One is the ETH2CAN buffer configurations.

Have you done any modifications to the project?

The ETH2CAN buffer config change is the following:

DanielAguirre_0-1689365832002.png

 

Please, let us know.

0 Kudos
Reply
3,669 Views
seeu
Contributor III

Hi, 

I chang the value from 72 to 73, now the frame drop problem were solved. But I can't still receive the can frame from ETH2CAN. Because I comment the CAN2ETH code, and use tcpreplay to send the ETH packet to PFE_MAC1(P3A connector),and run the code,  Logic analyzer can't receive CAN frame, and the variable rxIndicationCount=0 .

Snipaste_2023-07-17_16-58-22.png

Snipaste_2023-07-17_16-35-35.png

  

0 Kudos
Reply
3,623 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

The recommended way of doing the ETH2CAN channel is to select the UDP packet being sent with the CAN2ETH feature then sending it back:

DanielAguirre_0-1690225805329.png

Is this what you are doing?

Please, let us know.

0 Kudos
Reply
3,602 Views
seeu
Contributor III

Hi,

Thanks, I have solved this problem.

3,591 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Was it related to the previous comment?

Still, good to know you got it working.

Please, let us know.

0 Kudos
Reply
3,567 Views
seeu
Contributor III

Hi,

I chang the value from 72 to 73, and re-open trace32 GUI, now it can run normally.But I don't know why I fail last time.

0 Kudos
Reply
3,548 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the confirmation. It indeed sounds odd, but good to know you got it working.

Have a great day.

0 Kudos
Reply