<?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>S32Kのトピック回复： S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371180#M58866</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same configuration in a S32K312 board，everything is OK。 variable in code reading&amp;nbsp;HR_TIME_STAMP&amp;nbsp; can update,&amp;nbsp;HR_TIME_STAMP register in trace32&amp;nbsp; can also update.&amp;nbsp;HR_TIME_STAMP[5](the base project used mailbox5) flow STM0_CNT.&lt;/P&gt;&lt;P&gt;RTD is the same version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhougw_0-1779784887653.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386807i6C0BADB1ECC96BAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhougw_0-1779784887653.png" alt="Zhougw_0-1779784887653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2026 08:43:53 GMT</pubDate>
    <dc:creator>Zhougw</dc:creator>
    <dc:date>2026-05-26T08:43:53Z</dc:date>
    <item>
      <title>S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370496#M58822</link>
      <description>&lt;DIV&gt;RTD: SW32K3_RTD_R21-11_3.0.0_P07_D2306&lt;/DIV&gt;&lt;DIV&gt;MCU: #S32K396&lt;/DIV&gt;&lt;DIV&gt;Question：TimeStamp of CAN didn't change when use STM0 as external timer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when I use default config, Timer register of CAN will increase, and timestamp of mailbox would change after Can transmition.&lt;/DIV&gt;&lt;DIV&gt;when I enable global time in CAN config, use STM0 for external timer reference, Timer register of CAN is always 0, timestamp of mailbox is always 0. HR_TIME_STAMP did not change. Can_43_FLEXCAN_TimestampTimerOverflowCallback can be called, Can_Ipw_u32CurrentCompareVal can change. Count of STM0 can change.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What's wrong, why timerstamp didn't change? Count of STM0 can change, Can transimition is OK(CanIf_TxConfirmation can be called).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;code in main function:&lt;/DIV&gt;&lt;DIV&gt;Gpt_Init(NULL_PTR);&lt;/DIV&gt;&lt;DIV&gt;Gpt_StartTimer(GptConf_GptChannelConfiguration_GptChannelConfiguration_0, 400000U);&amp;nbsp; // PIT&lt;/DIV&gt;&lt;DIV&gt;Gpt_StartTimer(GptConf_GptChannelConfiguration_GptChannelConfiguration_1, 4000000U);&amp;nbsp; &amp;nbsp; &amp;nbsp;// STM&lt;/DIV&gt;&lt;DIV&gt;Gpt_StartTimer(GptConf_GptChannelConfiguration_GptChannelConfiguration_0, 400000U);&amp;nbsp; // PIT&lt;/DIV&gt;&lt;DIV&gt;Gpt_EnableNotification(GptConf_GptChannelConfiguration_GptChannelConfiguration_1);&amp;nbsp; // STM&lt;/DIV&gt;&lt;DIV&gt;Can_43_FLEXCAN_Init(&amp;amp;Can_43_FLEXCAN_Config);&lt;/DIV&gt;&lt;DIV&gt;Can_43_FLEXCAN_SetControllerMode(CanController_Veh, CAN_CS_STARTED);&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Platform_SetIrq(FlexCAN3_0_IRQn, TRUE);&lt;/DIV&gt;&lt;DIV&gt;Platform_SetIrq(FlexCAN3_1_IRQn, TRUE);&lt;/DIV&gt;&lt;DIV&gt;Platform_SetIrq(STM0_IRQn, TRUE);&lt;/DIV&gt;&lt;DIV&gt;for(;;)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if(IP_PIT_0-&amp;gt;TIMER[0].TFLG == 1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IP_PIT_0-&amp;gt;TIMER[0].TFLG = 1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CanTx_10ms();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhougw_0-1779675042721.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386630i09963B5B0E980EFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhougw_0-1779675042721.png" alt="Zhougw_0-1779675042721.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhougw_1-1779675065490.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386632i6CCD15B4F3AB257B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhougw_1-1779675065490.png" alt="Zhougw_1-1779675065490.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 May 2026 02:12:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370496#M58822</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-25T02:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370613#M58827</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Zhougw&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to this discussion; a test demonstration example is provided in the attachment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Flexcan-use-case-of-timestamp/td-p/1992642" target="_blank"&gt;https://community.nxp.com/t5/S32K/Flexcan-use-case-of-timestamp/td-p/1992642&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2026 06:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370613#M58827</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-05-25T06:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370717#M58833</link>
      <description>All my project is based on EBtresos, Is there any demo of EBtresos? or could you tell me what register should i check&lt;BR /&gt;&lt;BR /&gt;I checked registers about timestamp of CAN, didn't find any abnormal register&lt;BR /&gt;DCMRWF1.CAN_TIMESTAMP_EN=1(enable),&lt;BR /&gt;DCMRWF1.CAN_TIMESTAMP_SEL=1(STM0)&lt;BR /&gt;CAN.TIMER_src=1 :external time tick&lt;BR /&gt;CAN.MBTSBASE=1/2: high-resolution timer&lt;BR /&gt;CAN.TSTAMPCAP=2: start of CAN frame&lt;BR /&gt;STM0.CNT：increasing&lt;BR /&gt;&lt;BR /&gt;and CAN is transmitting msg, CanIf_TxConfirmation is called ok.&lt;BR /&gt;&lt;BR /&gt;what am i missing? Timestamp in MB or HR_TIME_STAMP is not updated by hardware?</description>
      <pubDate>Mon, 25 May 2026 08:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370717#M58833</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-25T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370767#M58834</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@Zhougw" target="_blank"&gt;Hi@Zhougw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Using this function in EB is not very complicated.&lt;/P&gt;
&lt;P&gt;This is the configuration process I saw.&lt;/P&gt;
&lt;P&gt;Please check if you have configured it according to the requirements.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1779701867599.png" style="width: 649px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386702i7F5D0754A5054905/image-dimensions/649x680?v=v2" width="649" height="680" role="button" title="Senlent_0-1779701867599.png" alt="Senlent_0-1779701867599.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2026 09:39:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370767#M58834</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-05-25T09:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370948#M58844</link>
      <description>the image I post shows I configred the callback function. Can_Ipw_u32CurrentCompareVal is updated in this function, I saw it can change in trace32.&lt;BR /&gt;from my understanding, it only influnce the higher bit of the timestamp, the lower bit should be HR_TIME_STAMP, i think the problem is why HR_TIME_STAMP did not update.&lt;BR /&gt;I tried to read HR_TIME_STAMP in main function, it is always 0. before I add this code, HR_TIME_STAMP is not zero, it just didn't change after can transmition, I watched HR_TIME_STAMP register in trace32.&lt;BR /&gt;so, count of STM0 can update, CAN_CTRL2 configured right(TIMER_src=1,.MBTSBASE=1 or 2,TSTAMPCAP=2), can transmit ok, why HR_TIME_STAMP didn't update, I check reference mannual and doc of RTD, didn't see anything else need to do.</description>
      <pubDate>Tue, 26 May 2026 01:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2370948#M58844</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-26T01:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371012#M58853</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Zhougw&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Provide the ELF file and configuration project, and I'll test it for you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 04:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371012#M58853</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-05-26T04:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371078#M58861</link>
      <description>&lt;P&gt;RTD: SW32K3_RTD_R21-11_3.0.0_P07_D2306.exe&lt;BR /&gt;external crystal: 20M&lt;/P&gt;&lt;P&gt;today, I use other project successed once(Can TimeStamp Required Accuracy : 1 -&amp;gt; 1000,add code to read HR_TIME_STAMP after Can_43_FLEXCAN_Write)，then I change code back to find difference, HR_TIME_STAMP didn't update. even i change the code back, HR_TIME_STAMP didn't update. no matter how i change the code, never succeeded again.&lt;/P&gt;&lt;P&gt;To make test easier, I enabled can loopback mode, so port_init is not needed.&lt;BR /&gt;EB can only configure FLEXCAN_MSGBUFFTIMESTAMP_TIMER, I need to use FLEXCAN_MSGBUFFTIMESTAMP_LOWER.&lt;BR /&gt;In function FlexCAN_ConfigTimestamp,I replaced base-&amp;gt;CTRL2 |= Temp; to base-&amp;gt;CTRL2 |= 0x8180; this is the same as changing Flexcan_aCtrlConfigPB in FlexCAN_Ip_PBcfg.c.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 06:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371078#M58861</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-26T06:37:04Z</dc:date>
    </item>
    <item>
      <title>回复： S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371180#M58866</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same configuration in a S32K312 board，everything is OK。 variable in code reading&amp;nbsp;HR_TIME_STAMP&amp;nbsp; can update,&amp;nbsp;HR_TIME_STAMP register in trace32&amp;nbsp; can also update.&amp;nbsp;HR_TIME_STAMP[5](the base project used mailbox5) flow STM0_CNT.&lt;/P&gt;&lt;P&gt;RTD is the same version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhougw_0-1779784887653.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386807i6C0BADB1ECC96BAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhougw_0-1779784887653.png" alt="Zhougw_0-1779784887653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 08:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371180#M58866</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-26T08:43:53Z</dc:date>
    </item>
    <item>
      <title>回复： S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371585#M58897</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Zhougw&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Attached are the project I tested and a video of my test results.&lt;/P&gt;
&lt;P&gt;The hardware used for the test is based on the S32K396EVB.&lt;/P&gt;
&lt;P&gt;I have modified the clock to 20MHz, so you can directly test the project I provided or debug the ELF file.&lt;/P&gt;
&lt;P&gt;I checked your EB configuration, and I think this might be a problem with the clock configuration in your "Mcu" module.&lt;/P&gt;
&lt;P&gt;You can refer to this configuration and try again.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1779846985514.png" style="width: 530px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386895iC45C1A8E4392AA70/image-dimensions/530x363?v=v2" width="530" height="363" role="button" title="Senlent_1-1779846985514.png" alt="Senlent_1-1779846985514.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 01:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371585#M58897</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-05-27T01:56:48Z</dc:date>
    </item>
    <item>
      <title>回复： S32K3 CAN TIMESTAMP NOT OK when use external timer(STM0)</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371603#M58898</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;I have tested your elf，HR_TIME_STAMP fallows STM0_CNT.&lt;/DIV&gt;&lt;DIV class=""&gt;I changed PLL configuration in my project, it is still the same, I will check other configuration.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="下载.png" style="width: 419px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/386900iDED8216D2C2A8260/image-size/large?v=v2&amp;amp;px=999" role="button" title="下载.png" alt="下载.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 May 2026 02:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-TIMESTAMP-NOT-OK-when-use-external-timer-STM0/m-p/2371603#M58898</guid>
      <dc:creator>Zhougw</dc:creator>
      <dc:date>2026-05-27T02:41:39Z</dc:date>
    </item>
  </channel>
</rss>

