Hello everyone!
I am working in a project using the follow environment:
- LPC55S06JHI48 MCU
- MCUXpresso IDE v11.7.1 [Build 9221] [2023-03-28]
- SDK_2.x_LPC55S06 v3.10
I can not read the timestamp value inside the CAN protocol registers. My project is setup to use CAN 2.0B (extended frame - 29bits ID). At this time I am not working with CAN-FD.
I am using the mcan driver implementation to read the CAN RX buffer.
The User Manual UM11424 says that the timestamp value can be read in the RXTS field (page 779).

I know it is necessary to configure the Timestamp counter configuration resgister (TSCC) as follow on the page 753.

But, looking into the fsl_mcan.c implementation, I could not find any reference to TSCC register. It seems that the mcan driver not initialize this register and there are not any method to configure it.
Looking into LPC55S06.h file, I found the TSCC register declaration, as follow:

I tried to setup the timestamp using direct calls on the registers, but without success. I always read zero for timestamp.
My question is: mcan driver does not implement timestamp initialization steps?
How can I use CAN timestamp in my received packages, without external timer/counter block in the MCU?
Thank you everyone!!!
Claudio Kunde.