<?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: VLPS wakeup issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/VLPS-wakeup-issue/m-p/1591978#M20367</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@sungjun" target="_blank"&gt;Hi@sungjun&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You don't have to use POWER_SYS_Init or Clock_Init after waked up from the low-power mode,only POWER_SYS_SetMode will be fine.&lt;/P&gt;
&lt;P&gt;you can take a look at the AN5425,the chapter 5.4 VLPR mode exit.&lt;/P&gt;
&lt;P&gt;I attched it for your reference.(VLPR to run should be same with VLPS.)&lt;/P&gt;
&lt;P&gt;To reenter normal RUN mode, clear SMC_PMCTRL[RUNM] bits. If a higher execution frequency is desired, poll PMSTAT until it is set to RUN and then configure SCG module as desired. Also, a reset event causes the MCU to come back to RUN mode.&lt;BR /&gt;Next snippet code shows a basic VLPR to RUN transition function.&lt;/P&gt;
&lt;P&gt;void VLPR_to_RUN (void)&lt;BR /&gt;{&lt;BR /&gt;/* Check if current mode is VLPR mode */&lt;BR /&gt;if(SMC-&amp;gt;PMSTAT == 0x04)&lt;BR /&gt;{&lt;BR /&gt;/* Move to RUN Mode*/&lt;BR /&gt;SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0b00);&lt;BR /&gt;/* Wait for Transition*/&lt;BR /&gt;while(SMC-&amp;gt;PMSTAT != 0x01);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 06:48:23 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2023-02-02T06:48:23Z</dc:date>
    <item>
      <title>VLPS wakeup issue</title>
      <link>https://community.nxp.com/t5/S32K/VLPS-wakeup-issue/m-p/1591899#M20362</link>
      <description>&lt;P&gt;I am developing through S32k144 device.&lt;BR /&gt;The MCU enters VLPS mode and wakes up through GPIO interrupt.&lt;BR /&gt;Currently, when VLPS is completed and Wakeup is performed, Power_init and Clock_init are performed.&lt;/P&gt;&lt;P&gt;The problem comes from Power init.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_0-1675313602216.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/209247iF4A8C13D227D46D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_0-1675313602216.png" alt="sungjun_0-1675313602216.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_1-1675313645614.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/209248i6043ED31401248E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_1-1675313645614.png" alt="sungjun_1-1675313645614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEV_ASSERT((CLOCK_SYS_GetFircFreq() != 0U) || (sysClkConfig-&amp;gt;src != FIRC_CLK));&lt;BR /&gt;I can't get out of the above statement.&lt;/P&gt;&lt;P&gt;After checking the problem, it seems that the problem is caused by the FIRC of FIRCCSR being disabled.&lt;/P&gt;&lt;P&gt;The question here is the setup order after VLPS wakeup.&lt;BR /&gt;1. POWER_SYS_Init - POWER_SYS_SetMode - CLOCK_SYS_Init - CLOCK_SYS_SetConfiguration&lt;BR /&gt;2. CLOCK_SYS_Init - CLOCK_SYS_SetConfiguration - POWER_SYS_Init - POWER_SYS_SetMode&lt;BR /&gt;3. don't care&lt;/P&gt;&lt;P&gt;In which order should I set it 1, 2, 3?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 04:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/VLPS-wakeup-issue/m-p/1591899#M20362</guid>
      <dc:creator>sungjun</dc:creator>
      <dc:date>2023-02-02T04:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: VLPS wakeup issue</title>
      <link>https://community.nxp.com/t5/S32K/VLPS-wakeup-issue/m-p/1591978#M20367</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@sungjun" target="_blank"&gt;Hi@sungjun&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You don't have to use POWER_SYS_Init or Clock_Init after waked up from the low-power mode,only POWER_SYS_SetMode will be fine.&lt;/P&gt;
&lt;P&gt;you can take a look at the AN5425,the chapter 5.4 VLPR mode exit.&lt;/P&gt;
&lt;P&gt;I attched it for your reference.(VLPR to run should be same with VLPS.)&lt;/P&gt;
&lt;P&gt;To reenter normal RUN mode, clear SMC_PMCTRL[RUNM] bits. If a higher execution frequency is desired, poll PMSTAT until it is set to RUN and then configure SCG module as desired. Also, a reset event causes the MCU to come back to RUN mode.&lt;BR /&gt;Next snippet code shows a basic VLPR to RUN transition function.&lt;/P&gt;
&lt;P&gt;void VLPR_to_RUN (void)&lt;BR /&gt;{&lt;BR /&gt;/* Check if current mode is VLPR mode */&lt;BR /&gt;if(SMC-&amp;gt;PMSTAT == 0x04)&lt;BR /&gt;{&lt;BR /&gt;/* Move to RUN Mode*/&lt;BR /&gt;SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0b00);&lt;BR /&gt;/* Wait for Transition*/&lt;BR /&gt;while(SMC-&amp;gt;PMSTAT != 0x01);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 06:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/VLPS-wakeup-issue/m-p/1591978#M20367</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-02-02T06:48:23Z</dc:date>
    </item>
  </channel>
</rss>

