Question about S32G3 LLCE CAN2Eth function.

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

Question about S32G3 LLCE CAN2Eth function.

跳至解决方案
4,857 次查看
SongShizhe
Contributor II

Hi:

    I have completed the CAN2eth function by EB Studio.  On the A-core side, data can be dumped from pfe2. But timestamp in acf-can message is always 0x0.   How to get runtime data of avtp_timestamp  in acf-can message?

SongShizhe_0-1709627212593.png

SongShizhe_1-1709627923542.png

 

 

标记 (1)
0 项奖励
回复
1 解答
4,573 次查看
SongShizhe
Contributor II

Hi:

It works as CAN timestamp is enabled.

SongShizhe_1-1711414595803.png

 

在原帖中查看解决方案

0 项奖励
回复
9 回复数
1,087 次查看
S9527Y
Contributor II

您好

我现在也在使用EB Tresos做CAN2ETH的内容,将CAN数据发送给A核,我阅读了您上传的A核日志,我看里面A核是作为PFE的Slave,请问是由M核来作为PFE的Master吗,这种实现方式有什么可以参考的示例吗,M核只将CAN数据发送给A核,M核的PFE需要怎么进行配置呢

0 项奖励
回复
4,794 次查看
SongShizhe
Contributor II

Hi,

Thank you for your reply. According to your suggestion, the code is being modified.

I also have another issue.

In my development, RX/TX frames of about five CAN channels including  be routing to ethenet using CAN2Eth feature.

Only  one routing table with large buffer size and number referenced by CanAdvancedFeature for all CAN frames routing to ethernet.

SongShizhe_2-1709892230301.png

 

In test, four CAN channel is connected by VN1640A device.  On one channel, only one frame(0x572)is as input, the busload is low.

SongShizhe_0-1709891023459.pngSongShizhe_1-1709891106779.png

Dump pfe2 interface,   data loss is found.   What's the reason?  Any suggestion?

SongShizhe_3-1709892824173.png

 

0 项奖励
回复
4,787 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. We understand that the original request was fulfilled, is this correct?

As for the last inquiry, since this does not relate to NXP example codes we might be unable to reproduce the outcome you are seeing. Can you also confirm if this is a custom board?

FoWe can recommend opening a ticket under the NXP online services, since again we don't seem to be able to reproduce the respective outcome, nor we have the required setup. We do apologize.

Please, let us know.

0 项奖励
回复
4,836 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Can you let us know which LLCE version are you using? Also, we understand that the available example for CAN2ETH uses only the M7 core, for which we understand that this is a custom application, is this correct?

Under the A core, which BSP are you running? Can you help us sharing the respective log from the A core?

Please, let us know.

0 项奖励
回复
4,820 次查看
SongShizhe
Contributor II

Q:Can you let us know which LLCE version are you using? Also, we understand that the available example for CAN2ETH uses only the M7 core, for which we understand that this is a custom application, is this correct?

A: LLCE version is S32G_LLCE_1.0.7.  My development is a custom application.

 

Q:Under the A core, which BSP are you running? Can you help us sharing the respective log from the A core?

A:  The respective log is attached.

 

The touting rules table  is  configured by EB tools which is no timestamps option.  I wondered which module or firmware fills the timestamps information of ACF-CAN messages? 

SongShizhe_0-1709713963020.png

SongShizhe_1-1709714058351.png

 

0 项奖励
回复
4,812 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. The following information is provided under the LLCE Firmware User Guide:

"

For formats that use timestamp, the timestamp is taken from the Timestamp Module as described in the S32G reference manuals. For CAN frames, the timestamp is generated by hardware and has high accuracy

"

Also, it seems that the following steps are provided on this regard:

"

Please check the steps:

1. choice the clock source, suggest customer to choose PFE. We do not provide API to modify it. so please enable CAN_TS_CNT_SEL and TS_ENABLE bits of TIMESTAMP_CONTROL_REGISTER

DanielAguirre_0-1709733487977.png

2. Enable PFE EthGlobalTimeSupport

DanielAguirre_1-1709733487817.png

"

Please, let us know.

0 项奖励
回复
4,713 次查看
SongShizhe
Contributor II

Hi,

Following your suggestion.

1.  Choose PFE as the clock source, enable CAN_TS_CNT_SEL and TS_ENABLE bits of TIMESTAMP_CONTROL_REGISTER;

2.  PFE EthGlobalTimeSupport had been enabled before.

Found that still no timestamps value in AVTP data.

Any other suggestions? 

Thank you.

0 项奖励
回复
4,693 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. Can you confirm that the timer was started? We see the following information under the LLCE-FW User Guide:

"Thus, the user has to select the timestamp source, enable the timestamp module in Timestamp Control Register and start the timer."

Also, the information provided before was not from the user guide itself, but from internal recommendations. We see that the recommended timer under the LLCE-FW User Guide is STM7:

"(recommended STM7 - clock driven XBAR_DIV2_CLK)"

Please, let us know.

0 项奖励
回复
4,574 次查看
SongShizhe
Contributor II

Hi:

It works as CAN timestamp is enabled.

SongShizhe_1-1711414595803.png

 

0 项奖励
回复