<?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: MCU can't exit VLPS mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086850#M7796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;We already try disabling the Systick add a internal WDOG for the future software,&amp;nbsp;now we are just trying to find the exact reason for this situation ( it can only happen every ten thousand or more sleep procedures based on our continual tests for days).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2020 01:44:08 GMT</pubDate>
    <dc:creator>allenlw</dc:creator>
    <dc:date>2020-07-17T01:44:08Z</dc:date>
    <item>
      <title>MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086844#M7790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We came across a problem that very much like the description of ERR011063&amp;nbsp;in the Mask Set Errata for Mask 0N57U, the platform we are using are S32K144 and TJA1169.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;ERR011063: SMC: An asynchronous wakeup event during VLPS mode entry may&lt;BR /&gt;result in possible system hang scenario.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Description: &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: small; "&gt;When the bus clock is same system clock and an asynchronous wakeup occurs during a mode&lt;BR /&gt;transition from RUN to VLPS or VLPR to VLPS, the MCU may hang in an undetermined state,&lt;BR /&gt;which can only be recovered by a power-on reset event or a watchdog reset.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Workaround: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small; "&gt;Before executing the transition to VLPS ensure that the PREDIV_SYS_CLK frequency /&lt;BR /&gt;BUS_CLK frequency configuration for RUN/VLPR mode is greater than or equal to 2.&lt;BR /&gt;For example: Assuming a PREDIV_SYS_CLK of 8 MHz and SCG_RCCR[DIVCORE] =&lt;BR /&gt;0b0001 (divider of 2) and SCG_RCCR[DIVBUS] = 0b0001 (divider of 1), (PREDIV_SYS_CLK&lt;BR /&gt;= 8 MHz) / (BUS_CLK = 4 MHz) , a ratio of 1:2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When we enter the VLPS mode, we only have two interrupts: Systick and LPTMR, since we think&amp;nbsp;our LPTMR interrupt timing can never coincide with transition to VLPS, that leaves only Systick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So my question is are Systick one of the Asynchronous wakeup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Another issue, according to the workaround of the ERR011063, PREDIV_SYS_CLK / BUS_CLK need to have a value greater than or equal to 2, our current DIVCORE and DIVBUS are 2, that means PREDIV_SYS_CLK / BUS_CLK is 4.But since PREDIV_SYS_CLK only available in S32K148, dose that mean this error can still happen in S32K144?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 02:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086844#M7790</guid>
      <dc:creator>allenlw</dc:creator>
      <dc:date>2020-07-10T02:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086845#M7791</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/allenlw"&gt;allenlw&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Systick in VLPS has been already discussed:&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/508436"&gt;SysTick，VLPS ，Debug&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/504486"&gt;https://community.nxp.com/thread/504486&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is an S32K144 0N57U erratum. &lt;BR /&gt;But if you follow the workaround and PREDIV_SYS_CLK / BUS_CLK &amp;gt;= 2, you should not see this.&lt;/P&gt;&lt;P&gt;The PREDIV_SYS_CLK is available on all the S32K1xx derivatives.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/115629iC528DBE47A53923D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate on the description of the issue?&lt;/P&gt;&lt;P&gt;Do you switch the system clock to SIRC before the transition to VLPS?&lt;BR /&gt;Are all the other clock sources disabled before VLPS?&lt;/P&gt;&lt;P&gt;Which peripherals does the application use?&lt;BR /&gt;Have you tried running the application stand alone without the debugger?&lt;BR /&gt;Do you monitor system clock externally using CLKOUT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 08:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086845#M7791</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-07-13T08:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086846#M7792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1. Could you please elaborate on the description of the issue?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; The problematic piece we found stay in the VLPS, based on multiple test applications and&amp;nbsp;corresponding current values.(We modify the application to force the software stay in different state, only the VLPS current value match the problematic piece)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2. Do you switch the system clock to SIRC before the transition to VLPS?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; Yes&lt;BR /&gt;3. Are all the other clock sources disabled before VLPS?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; All the clock besides LPO and SIRC are disabled&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;4. Which peripherals does the application use?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; Before entering the VLPS only SPI、LPTMR 、Systick and EEE(not sure if EEE is peripheral)&lt;BR /&gt;5. Have you tried running the application stand alone without the debugger?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; We are running without debugger, load the application with a bootloader.&lt;BR /&gt;6. Do you monitor system clock externally using CLKOUT?'&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; No&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086846#M7792</guid>
      <dc:creator>allenlw</dc:creator>
      <dc:date>2020-07-14T08:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086847#M7793</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/allenlw"&gt;allenlw&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If i understand, the MCU is not in an undetermined state but it stays in VLPS and cannot be bring back to RUN.&lt;/P&gt;&lt;P&gt;Please make sure that the interrupt that is the wake-up source in your application has the highest priority.&lt;/P&gt;&lt;P&gt;Or you could disable all the other interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086847#M7793</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-07-14T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086848#M7794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. First we thought MCU is in an undetermind state, but our PREDIV_SYS_CLK / BUS_CLK is 4, so we are not so sure any more.&lt;/P&gt;&lt;P&gt;2. In the VLPS mode, we use LPTMR to wake it up, it works most of the time. But sometimes it stays in the VLPS, so we don't know what caused it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 01:02:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086848#M7794</guid>
      <dc:creator>allenlw</dc:creator>
      <dc:date>2020-07-15T01:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086849#M7795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/allenlw"&gt;allenlw&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It is hard to say.&lt;/P&gt;&lt;P&gt;Have you tried disabling all the other interrupts including Systick?&lt;/P&gt;&lt;P&gt;And using the highest priority for the LPTMR interrupt?&lt;/P&gt;&lt;P&gt;Or on the contrary, try enable a GPIO interrupt as well to see if the issue is in the timer.&lt;/P&gt;&lt;P&gt;The LPTMR won't be able to wake up if, for example, SIRC is disabled in VLPS or the interrupts are masked etc.&lt;/P&gt;&lt;P&gt;Could you please make sure everything is set correctly before the MCU enters VLPS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 14:42:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086849#M7795</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-07-15T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086850#M7796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;We already try disabling the Systick add a internal WDOG for the future software,&amp;nbsp;now we are just trying to find the exact reason for this situation ( it can only happen every ten thousand or more sleep procedures based on our continual tests for days).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 01:44:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086850#M7796</guid>
      <dc:creator>allenlw</dc:creator>
      <dc:date>2020-07-17T01:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086851#M7797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/allenlw"&gt;allenlw&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Since it happens so rarely, it difficult to find the root cause.&lt;/P&gt;&lt;P&gt;Please try to isolate the issue by adding another interrupt, like GPIO mentioned above, and when LPTMR fails, use the GPIO.&lt;/P&gt;&lt;P&gt;What is the power consumption in VLPS?&lt;/P&gt;&lt;P&gt;Is it possible that the MCU goes back to VLPS immediately (sleep-on-exit)?&lt;/P&gt;&lt;P&gt;Please measure BUS_CLK on CLKOUT to see if the MCU really stays in VLPS.&lt;/P&gt;&lt;P&gt;It might be a SW issue though that disables something necessary before the MCU enter VLPS.&lt;/P&gt;&lt;P&gt;Can you share the project? So that we can check the configuration at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 08:14:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086851#M7797</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-07-24T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086852#M7798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks for all the advices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;As you said, it is difficult to find the root cause, so we are trying everything we can to optimize the software, wishing it will never happen again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;As for the project, I can't share the it, since it is not just a demo project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 01:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1086852#M7798</guid>
      <dc:creator>allenlw</dc:creator>
      <dc:date>2020-07-27T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: MCU can't exit VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1735585#M27664</link>
      <description>&lt;P&gt;Hi expert:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I use s32k144 that (PREDIV_SYS_CLK= 48 MHz) / (BUS CLK = 48 MHz) ,a ratio of 1:1. With this clock setting,mcu can hang in an undetermined state. What does phenomena of this state? Can it result reset pin to low voltage?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 07:46:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCU-can-t-exit-VLPS-mode/m-p/1735585#M27664</guid>
      <dc:creator>Faker</dc:creator>
      <dc:date>2023-10-09T07:46:14Z</dc:date>
    </item>
  </channel>
</rss>

