<?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>topic Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module in S32K</title>
    <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076829#M7525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok TVAL0 -&amp;gt; 0x00030D40 and CVAL0 -&amp;gt; 0x00012629. But my configurations are the same as&amp;nbsp;I posted here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2020 12:14:02 GMT</pubDate>
    <dc:creator>talha_uyar</dc:creator>
    <dc:date>2020-05-21T12:14:02Z</dc:date>
    <item>
      <title>32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076820#M7516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build&amp;nbsp; basic timer application using the Gpt module provided. I am using MCAL 4.3 on&amp;nbsp;S32K118 EVB and using EB tresos and S32DS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up the&amp;nbsp;McuClockReferencePoint at LPO_CLK_32K and when the frequency is calculated, it is indeed 32000. Then I have set the GptClockReferencePoint_0 to point to this clock, and created a Gpt channel instance named Sample_Timer. EB tresos also calculates the&amp;nbsp;GptChannelTickFrequency as 32000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I set up my main code to test it, the timer was waaay to fast. So I tried&amp;nbsp;some&amp;nbsp;reasonable large values for overflow. Indeed, when I set the timeout period as 40.000.000 it is overflowing with approximately&amp;nbsp;2 second intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing the issue is with the EVB 118 hardware. So even though EB Tresos thinks that there is an oscillator with a frequency of 128Khz, it is not there. I think the only two XTAL's available on EVB are at 8MHz and 40MHz. So I guess I cannot&amp;nbsp;test the LPO functionality with this board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a timer with 32 kHz frequency without using prescalers etc.? If so, what am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M. Talha Uyar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 11:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076820#M7516</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-12T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076821#M7517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These below HW peripherals are available for configure GPT in S32K118: LPIT, FTM, LPTMR and RTC. None of them have LPO_32K as clock source, according to the Reference Manual. So basically, you can't choose LPO_32K as the clock source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to clarify a point: These parameters:&amp;nbsp;GptChannelClkSrcRef and&amp;nbsp;GptChannelTickFrequency, as I can see in GPT implementation, only for AUTOSAR compliant, and not to be used at all as an input of GPT clock source. In order to choose clock source, it depends on your GPT HW peripheral (LPIT, FTM, LPTMR, RTC) and clock source to be chosen in MCU peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCU_Peripheral.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106734i80C749113E80A1A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCU_Peripheral.JPG" alt="MCU_Peripheral.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to create a MCU clock reference point for GPT, it will be more precisely if you choose the corresponding HW peripheral's clock source. For instance, you should choose LPIT_CLK if you choose LPIT as GPT HW peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106770iFDD1462402368309/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, refer this point in the GPT clock reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106816iA0A8980B504BAFBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In conclusion, in order to create a 32K clock source for GPT, you might need to use the prescaler, and LPO_32K is unavailable as GPT clock source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 12:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076821#M7517</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-18T12:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076822#M7518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand that I cannot use LPO_32K as a clock source for GPT; however, I am stil having isues with the timeout duration of my timer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now configured LPIT as my clock source the clock tick frequency is calculated as 4 MHz, which I guess was expected. However, when I start my timer using&amp;nbsp;Gpt_StartTimer(Sample_Timer, 4000000); the timeout duration is much&amp;nbsp;smaller than 1 second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can share the Cfg files for my GPT if you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 09:48:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076822#M7518</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-20T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076823#M7519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, please share me your cfg files (better in .epc - located in output folder also, or .xdm). I'll check in my site if there is anything incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 09:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076823#M7519</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-20T09:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076824#M7520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the link for Cfg files including .epc files:&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://drive.google.com/open?id=17_VSCVPEIjCyFRWkyomyEVfI0tz8g1GE" title="https://drive.google.com/open?id=17_VSCVPEIjCyFRWkyomyEVfI0tz8g1GE"&gt;https://drive.google.com/open?id=17_VSCVPEIjCyFRWkyomyEVfI0tz8g1GE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 11:24:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076824#M7520</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-20T11:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076825#M7521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your configuration and I can succesfully generate a 1 second timeout. Please see my code below. Basically, I call Gpt_StartTimer, then wait until a flag is set in notification. When notification is called, a one-second timeout is finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In main function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Mcu_Init(&amp;amp;McuModuleConfiguration);&lt;BR /&gt;&lt;BR /&gt;Mcu_InitClock(McuClockSettingConfig_0);&lt;BR /&gt;&lt;BR /&gt;/******************************************************************************/&lt;BR /&gt;/* GPT */&lt;BR /&gt;/******************************************************************************/&lt;BR /&gt; Gpt_Init(&amp;amp;GptChannelConfigSet);&lt;BR /&gt; Gpt_EnableNotification(Sample_Timer);&lt;BR /&gt;&lt;BR /&gt;/******************************************************************************/&lt;BR /&gt;/* PORT */&lt;BR /&gt;/******************************************************************************/&lt;BR /&gt; Port_Init(&amp;amp;PortConfigSet);&lt;BR /&gt;&lt;BR /&gt;/* Setup all the needed interrupts(and their priorities) */&lt;BR /&gt; sys_disableAllInterrupts();&lt;BR /&gt;&lt;BR /&gt;/* Gpt interrupts*/&lt;BR /&gt; /* GPT_LPIT_0_CH_0_ISR_USED */&lt;BR /&gt; sys_enableIsrSource(20, 0x70);&lt;BR /&gt; sys_registerIsrHandler(20, (uint32) &amp;amp; LPIT_0_ISR);&lt;BR /&gt;&lt;BR /&gt;/* Enable external Interrupts */&lt;BR /&gt; sys_enableAllInterrupts();&lt;BR /&gt;&lt;BR /&gt;Gpt_StartTimer(Sample_Timer, 4000000);&lt;BR /&gt;&lt;BR /&gt;PTB-&amp;gt;PDOR |= (1 &amp;lt;&amp;lt; 0);&lt;BR /&gt; while (Delay1s_Flag == 0);&lt;BR /&gt; PTB-&amp;gt;PDOR &amp;amp;= ~(1 &amp;lt;&amp;lt; 0);&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;In notification function:&lt;/STRONG&gt;&lt;BR /&gt;void Gpt_Timeout_Notification(void)&lt;BR /&gt;{&lt;BR /&gt; Delay1s_Flag = 1;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 10:01:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076825#M7521</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-21T10:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076826#M7522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried your code and the timeout is definitely not 1 second. I also tried the following code:&lt;/P&gt;&lt;P&gt;Main function:&lt;/P&gt;&lt;P&gt;Mcu_Init(&amp;amp;McuModuleConfiguration);&lt;BR /&gt; Mcu_InitClock(McuClockSettingConfig_0);&lt;BR /&gt; Mcu_SetMode((Mcu_ModeType)MCU_RUN_MODE);&lt;/P&gt;&lt;P&gt;Port_Init(&amp;amp;PortConfigSet);&lt;BR /&gt; UART0_init();&lt;BR /&gt; Gpt_Init(&amp;amp;GptChannelConfigSet);&lt;BR /&gt; &lt;BR /&gt; Gpt_EnableNotification(Sample_Timer);&lt;BR /&gt;sys_enableIsrSource(LPIT0_Ch0_IRQn, 0x40);&lt;BR /&gt;Gpt_StartTimer(Sample_Timer, 4000000);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Notification Function:&lt;/P&gt;&lt;P&gt;void Gpt_Timeout_Notification(void)&lt;BR /&gt;{&lt;BR /&gt; str = "Hey\r\n";&lt;BR /&gt; TransmitData(str, StrLib_StringLen(str));&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the terminal, "Hey" is printed much much faster than 1 second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check if your Mcl configurations are the same as well. Also, I am using S32K118 EVB if that matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 11:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076826#M7522</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-21T11:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076827#M7523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPIT is not depended on MCL HW peripheral at all, so I supposed it's not necessary to check the MCL configuration, also not necessary to call Mcl_Init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the value in LPIT registers after GPT_StartTimer():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPIT.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107776iE43EEF3A1BE636A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPIT.JPG" alt="LPIT.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your registers' value is the same, then it should work, unless the MCU clock generation for LPIT has issue (but I've imported your MCU configuration and it worked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 12:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076827#M7523</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-21T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076828#M7524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant the Mcu configurations, sorry about that. Ok, I will look at the register values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 12:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076828#M7524</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-21T12:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076829#M7525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok TVAL0 -&amp;gt; 0x00030D40 and CVAL0 -&amp;gt; 0x00012629. But my configurations are the same as&amp;nbsp;I posted here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 12:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076829#M7525</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-21T12:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076830#M7526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the CLK source for LPIT is too much high, leads to CVAL (Counter value) decreases too fast. Please check your PCC and SCG registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PCC.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108390iEC61CD25C5F79641/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCC.JPG" alt="PCC.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SCG.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108463i0ABC2E449866D601/image-size/large?v=v2&amp;amp;px=999" role="button" title="SCG.JPG" alt="SCG.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 06:18:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076830#M7526</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-22T06:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076831#M7527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the register values are the same.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107187i24BAFE1E6C1C74A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also think this about me using the wrong clock source. When I call the function Gpt_StartTimer(Sample_Timer, 24000000) it&amp;nbsp;overflows at&amp;nbsp;1 second. This kind of indicates that I am using SYS_CLK instead of SOSCDIV2 which is at 24 MHz instead of 4 MHz. I cannot understand why, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 07:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076831#M7527</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-22T07:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076832#M7528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check exact period time the LPIT overflow in case of using SOSC with 4MHz clock source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 07:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076832#M7528</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-22T07:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076833#M7529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&amp;nbsp;I don't exactly know how to measure the exact period&amp;nbsp;without manually timing it. I have changed my timer to&amp;nbsp;Gpt_StartTimer(Sample_Timer, 400000000); and added two breakpoints: one just before I&amp;nbsp;started the timer and the other when&amp;nbsp;the timer overflows. The period is about 20 seconds. So I guess the period&amp;nbsp; of my original&amp;nbsp;&lt;SPAN&gt;Gpt_StartTimer(Sample_Timer, 4000000); is 0.2 seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Again this is not&amp;nbsp;precise considering I have manually&amp;nbsp;measured&amp;nbsp;the time between the timer starts and overflows but it is a very close estimate (definitely between 20 seconds and 21 seconds -&amp;gt; 0.2 seconds to 0.21 seconds for 4 MHz).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 06:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076833#M7529</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-27T06:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076834#M7530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just carefully looked into this thread, and I found the strange thing here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Muhammet Uyar wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok TVAL0 -&amp;gt; 0x00030D40 and CVAL0 -&amp;gt; 0x00012629. But my configurations are the same as&amp;nbsp;I posted here.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After exit GPT_StartTimer, TDVAL0 should be 0x003D0900 (in dec: 4000000), however TDVAL0 is only 0x00030D40 (in dec: 200000) =&amp;gt; timer is extremely shorter than it should be. Can you set breakpoint in this line in Gpt_LPit_StartTimer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REG_WRITE32(LPIT_TVAL_ADDR32((uint32)u8ModuleIdx,(uint32)u8ChannelIdx),u32Value);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the exact value was written to TDVAL register?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 06:57:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076834#M7530</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-27T06:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076835#M7531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These register values are just after the overflow. Sorry for the mistake, in the previous code I did some stuff in the timeout function. These are measured just after the timer overflow. Still the timer overflows much faster than 1 second.&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107903iE6A4E6CF4823F89A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 07:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076835#M7531</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-27T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076836#M7532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also checked the TVAL value just after&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;REG_WRITE32(LPIT_TVAL_ADDR32((uint32)u8ModuleIdx,(uint32)u8ChannelIdx),u32Value);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;TVAL0 -&amp;gt; 0x003D0900&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 08:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076836#M7532</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-27T08:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076837#M7533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till now, honestly I have no idea what cause the issue. All the registers' value seem to be correct. I assumed there is no issue with SW here, probably it comes from HW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try with SDK driver to see if the issue still happens? I supposed you might need to use LPIT and Clock driver from SDK. If the issue is still same, then probably your HW has problems, otherwise I will re-check MCAL driver to see any gaps or dependences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 11:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076837#M7533</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-27T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076838#M7534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really hoped you wouldn't say this was a hardware issue. I can share the .elf file for my main project so that you can test it in your hardware. If you have S32K118 EVB,&amp;nbsp;this code should change the colour of the RGB LED every at every two seconds (Blue -&amp;gt; Green&lt;SPAN&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;White&amp;nbsp;-&amp;gt;&amp;nbsp;Red&lt;/SPAN&gt;). If it is also changing its value at every two seconds in your hardware, then it cannot be a hardware issue, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will&amp;nbsp;also&amp;nbsp;build a sample project from the SDK and test it as you have suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 12:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076838#M7534</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-27T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: 32kHz timer on S32K118 EVB with MCAL Gpt Module</title>
      <link>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076839#M7535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built lpit_periodic_interrupt_s32k118 example project and it is working fine. It is overflowing exactly at the expected time. I don't think the issue is with the hardware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am almost certain that the associated clock for the&amp;nbsp;LPIT in my project has the frequency of 20 MHz instead of 4 MHz. I have no idea why but this is almost definitely the source of my problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 12:54:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/32kHz-timer-on-S32K118-EVB-with-MCAL-Gpt-Module/m-p/1076839#M7535</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-27T12:54:15Z</dc:date>
    </item>
  </channel>
</rss>

