CAN TIME STAMP

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

CAN TIME STAMP

1,397 Views
JackChen2022
Contributor I

Hello, I have a question to ask.The S32k148 chip is currently used, and the can communication is configured through the cal_pal component of the S32DS. Now I need to use the TIME STAMP function. I have learned about 53.4.3 Message buffer structure in the manual, but there is no specific usage method. I hope there is a usage routine or example.

0 Kudos
Reply
5 Replies

1,385 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@JackChen2022

you can read the time stamp field from mailbox directly,

for example.

Senlent_1-1656489177910.png

 

0 Kudos
Reply

1,375 Views
JackChen2022
Contributor I

Thank you very much for your reply. I use SDK for development here, and register operation is not used. Do you have any other examples?

 

微信图片_20220630113433.png微信图片_20220630113627.png

0 Kudos
Reply

1,355 Views
KARTHKSARODE
Contributor III

Hi @JackChen2022 

To get the timestamp of the CAN message , you can read the CS of received CAN message and do AND operation with 0xFFFF , which will give the value of timestamp

timestamp=CS&0x0000FFFF; 

Best Regards
KARTHIK SV
0 Kudos
Reply

1,335 Views
JackChen2022
Contributor I

Thank you very much for your reply, the issue has been resolved

0 Kudos
Reply

1,370 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@JackChen2022

I tried searching the internal system records and there is no such demo code for your reference.

As i said in my first reply, you can read the corresponding registers directly.

Tags (1)
0 Kudos
Reply