<?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: HSE MonotonicCnt API stuck in while loop in S32K</title>
    <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1697132#M25680</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220225"&gt;@VincentYALin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From my point of view, you can modify "wait 4s" to "wait 2s or 1s" to follow your expectation.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 03:32:26 GMT</pubDate>
    <dc:creator>DanNguyenDuy</dc:creator>
    <dc:date>2023-08-02T03:32:26Z</dc:date>
    <item>
      <title>HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1685618#M24988</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are using S32K312 HSE API MonotonicCnt , we found out there are a possibility that function might stuck in Hse_Ip_ServiceRequest’s while loop. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonotonicCnt_Read -&amp;gt; HSE_Send -&amp;gt; Hse_Ip_ServiceRequest &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while&lt;/STRONG&gt;&lt;STRONG&gt; ((FALSE == Mu_Ip_IsResponseReady(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel)) &amp;amp;&amp;amp; (u32ElapsedTicks &amp;lt; u32TimeoutTicks))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/* Update the elapsed ticks, current ticks will be updated too by the OsIf function */&lt;/P&gt;&lt;P&gt;u32ElapsedTicks += OsIf_GetElapsed(&amp;amp;u32CurrentTicks, (OsIf_CounterType)HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are calling MonotonicCnt_Read , MonotonicCnt_Config , MonotonicCnt_Write about once every few seconds , is there anyway to avoid it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 08:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1685618#M24988</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-07-11T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1686976#M25080</link>
      <description>&lt;P&gt;Any NXP tech support can help ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 01:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1686976#M25080</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-07-13T01:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1688757#M25172</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220225"&gt;@VincentYALin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Did the HSE FW version you are using support for config monotomic counter?&lt;/P&gt;
&lt;P&gt;Did you pass into the correct parameters when call HSE functions?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 08:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1688757#M25172</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-07-17T08:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1688973#M25188</link>
      <description>&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to reply to your question but NXP website has gone maintain for few days&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did the HSE FW version you are using support for config monotomic counter?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from the function&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GetAttr( HSE_FW_VERSION_ATTR_ID, sizeof(hseAttrFwVersion_t), &amp;amp;pHseFwVersion );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Cpt_M] pHseFwVersion.socTypeId 13&lt;/P&gt;&lt;P&gt;[Cpt_M] pHseFwVersion.fwTypeId 0&lt;/P&gt;&lt;P&gt;[Cpt_M] pHseFwVersion.majorVersion 2&lt;/P&gt;&lt;P&gt;[Cpt_M] pHseFwVersion.minorVersion 6&lt;/P&gt;&lt;P&gt;[Cpt_M] pHseFwVersion.patchVersion 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HSE_DEMOAPP_S32K3XX_0_2_6_0&lt;/STRONG&gt; have example about &lt;STRONG&gt;monotonic operation&lt;/STRONG&gt;. so we are assuming fw does support it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did you pass into the correct parameters when call HSE functions?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes , it's stability issue, it works sometimes but it stuck in while loop occassionally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the installer folder nxp &amp;gt; HSE_DEMOAPP_S32K3XX_0_2_6_0 &amp;gt; demo_security_installer_scripts, we found some scripts relate to the monotonic functions that has delay time of 4s to 5s. we had experience this stuck in while loop issue while we doing stress testing on monotonic counter with intervals around 4s,&amp;nbsp;Would you share with us about why do you set 4s-5s as delay time in the example scripts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;following are from&amp;nbsp;monotonic_counter.cmm file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SUB_FILL_DATA:&lt;BR /&gt;DIALOG.END&lt;BR /&gt;BREAK&lt;BR /&gt;v monotonic_cnt_select = MONOTONIC_CNT_INCREMENT&lt;BR /&gt;v gProgramAttributes = MONOTONIC_COUNTER&lt;BR /&gt;v gRunExampleTest = 1&lt;BR /&gt;GO&lt;BR /&gt;&lt;STRONG&gt;wait 4s&lt;/STRONG&gt;&lt;BR /&gt;break&lt;BR /&gt;v allTestExecuted = 1&lt;BR /&gt;v monotonic_cnt_select = MONOTONIC_CNT_NOT_SELECTED&lt;BR /&gt;v gProgramAttributes = NO_ATTRIBUTE_PROGRAMMED v gRunExampleTest = 0&lt;BR /&gt;v MonotonicCnt IncrementValue = 0&lt;BR /&gt;GO&lt;BR /&gt;do monotonic_counter.cmm&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 06:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1688973#M25188</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-07-20T06:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1691270#M25340</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;We try to use&amp;nbsp;&lt;SPAN&gt;MONOTONIC_CNT for our application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We find this data which could not access every 2 seconds. Does this the limitation and control by HSE-FW due to protect the HSE data-flash Read/Write cycle?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 09:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1691270#M25340</guid>
      <dc:creator>StephenYeh</dc:creator>
      <dc:date>2023-07-24T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1691915#M25389</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220225"&gt;@VincentYALin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The HSE FW team confirmed that: t&lt;SPAN&gt;here is no need for such larger delay. As it involves, flash write operation, they added sufficient delay to ensure smooth operation. You can reduce the delay as per your convenience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 06:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1691915#M25389</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-07-25T06:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1697116#M25676</link>
      <description>so what's next step ? I might still stuck in the while loop</description>
      <pubDate>Wed, 02 Aug 2023 03:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1697116#M25676</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-08-02T03:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1697132#M25680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220225"&gt;@VincentYALin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From my point of view, you can modify "wait 4s" to "wait 2s or 1s" to follow your expectation.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 03:32:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1697132#M25680</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-08-02T03:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1699269#M25775</link>
      <description>&lt;P&gt;It sound like we have an misunderstanding on what I have trouble with .&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have trouble with is that , there is a possibility S32K312 MCU might stuck in&amp;nbsp;MonotonicCnt_Read with HSE fw version 2.6&lt;/P&gt;&lt;P&gt;What I want from NXP is to give me a reason why this happen / How do I avoid it ?&lt;/P&gt;&lt;P&gt;is this a known issue&amp;nbsp; ? if not have you try to replicate it ?&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 08:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1699269#M25775</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-08-04T08:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1703935#M26009</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220225"&gt;@VincentYALin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you send me your project or a demo example? I'm going to check this from my side.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 02:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1703935#M26009</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2023-08-14T02:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: HSE MonotonicCnt API stuck in while loop</title>
      <link>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1707470#M26222</link>
      <description>&lt;P&gt;this is basically how we reproduce it&amp;nbsp;&lt;/P&gt;&lt;P&gt;MonotonicCnt_Config(1, 64);&lt;/P&gt;&lt;P&gt;int count = 0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint64 hse_counter = 0 ;&lt;/P&gt;&lt;P&gt;while(1){&lt;/P&gt;&lt;P&gt;MonotonicCnt_Read(1,&amp;amp;hse_counter );&amp;nbsp;&lt;/P&gt;&lt;P&gt;count++;&lt;/P&gt;&lt;P&gt;print("count&amp;nbsp; = %d",count );&lt;/P&gt;&lt;P&gt;sleep(1);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 09:57:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HSE-MonotonicCnt-API-stuck-in-while-loop/m-p/1707470#M26222</guid>
      <dc:creator>VincentYALin</dc:creator>
      <dc:date>2023-08-18T09:57:04Z</dc:date>
    </item>
  </channel>
</rss>

