<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCUXpresso SDKのトピックRe: LPC55S06 MCAN Driver - TimeStamp issue</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662406#M4349</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to use the code to read the timestamp value:&lt;/P&gt;
&lt;P&gt;CAN0-&amp;gt;TSCC=0x01;&lt;/P&gt;
&lt;P&gt;......................................&lt;BR /&gt;uint32_t temp=CAN0-&amp;gt;TSCV&amp;amp;0xFFFF;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 06:22:43 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-06-02T06:22:43Z</dc:date>
    <item>
      <title>LPC55S06 MCAN Driver - TimeStamp issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662183#M4348</link>
      <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;&lt;BR /&gt;I am working in a project using the follow environment:&lt;BR /&gt;-&amp;nbsp;LPC55S06JHI48 MCU&lt;BR /&gt;&lt;SPAN&gt;- MCUXpresso IDE v11.7.1 [Build 9221] [2023-03-28]&lt;BR /&gt;-&amp;nbsp;SDK_2.x_LPC55S06 v3.10&lt;BR /&gt;&lt;BR /&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am using the mcan driver implementation to read the CAN RX buffer.&lt;BR /&gt;The User Manual UM11424 says that the timestamp value can be read in the RXTS field (page 779).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clkunde_0-1685652583657.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225941i40A134EFDD66E2E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clkunde_0-1685652583657.png" alt="clkunde_0-1685652583657.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know it is necessary to configure the Timestamp counter configuration resgister (TSCC) as follow on the page 753.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clkunde_1-1685652680477.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225942iC486D0080B22A70B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clkunde_1-1685652680477.png" alt="clkunde_1-1685652680477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Looking into LPC55S06.h file, I found the TSCC register declaration, as follow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clkunde_2-1685653385373.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225946iD6D4A85C255F5E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clkunde_2-1685653385373.png" alt="clkunde_2-1685653385373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to setup the timestamp using direct calls on the registers, but without success. I always read zero for timestamp.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My question is: mcan driver does not implement timestamp initialization steps?&lt;BR /&gt;How can I use CAN timestamp in my received packages, without external timer/counter block in the MCU?&lt;BR /&gt;&lt;BR /&gt;Thank you everyone!!!&lt;BR /&gt;&lt;BR /&gt;Claudio Kunde.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 21:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662183#M4348</guid>
      <dc:creator>clkunde</dc:creator>
      <dc:date>2023-06-01T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 MCAN Driver - TimeStamp issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662406#M4349</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to use the code to read the timestamp value:&lt;/P&gt;
&lt;P&gt;CAN0-&amp;gt;TSCC=0x01;&lt;/P&gt;
&lt;P&gt;......................................&lt;BR /&gt;uint32_t temp=CAN0-&amp;gt;TSCV&amp;amp;0xFFFF;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 06:22:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662406#M4349</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-06-02T06:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 MCAN Driver - TimeStamp issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662843#M4350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code works fine. But the declaration&amp;nbsp;CAN0-&amp;gt;TSCC=0x01; should be used before the CAN interrupts enable and MCAN_EnterNormalMode function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now, I am able to read the timestamp counter correctly.&lt;/P&gt;&lt;P&gt;Thank you XiangJun Rong. l wish all the best for you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 19:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPC55S06-MCAN-Driver-TimeStamp-issue/m-p/1662843#M4350</guid>
      <dc:creator>clkunde</dc:creator>
      <dc:date>2023-06-02T19:27:48Z</dc:date>
    </item>
  </channel>
</rss>

