<?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のトピックRe: S32K11x VLPS to RUN</title>
    <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966362#M41591</link>
    <description>Thank you for your answer.&lt;BR /&gt;&lt;BR /&gt;What is a good point where I can put the call to the POWER_SYS_SetMode(RUN)? In the main loop or in each possible wake interrupt?&lt;BR /&gt;&lt;BR /&gt;Consider that my system can be awaken by LIN, by a timer (LPTMR0) and by external interrupts.&lt;BR /&gt;&lt;BR /&gt;I don't use the SOSC clock in my application.&lt;BR /&gt;&lt;BR /&gt;Is there a way to check into software that all the clocks and peripherals have switched to the selected power mode? Or checking the return value of POWER_SYS_SetMode is enough to be sure that everything has completed?&lt;BR /&gt;&lt;BR /&gt;Please let me know as soon as you can.&lt;BR /&gt;&lt;BR /&gt;Thank you and kind regards,&lt;BR /&gt;&lt;BR /&gt;Francesco</description>
    <pubDate>Thu, 03 Oct 2024 11:56:32 GMT</pubDate>
    <dc:creator>Francesco_Solito</dc:creator>
    <dc:date>2024-10-03T11:56:32Z</dc:date>
    <item>
      <title>S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1965765#M41543</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm finding some trouble when I switch my application from RUN to VLPS and then again to RUN.&lt;/P&gt;&lt;P&gt;Normally everything works correctly but sometimes it seems to fail and my application resets for watchdog event.&lt;/P&gt;&lt;P&gt;I'm using the SDK 4.01, so please let me know if invoking "POWER_SYS_SetMode(VLPS, POWER_MANAGER_POLICY_AGREEMENT);" is enough or if I have to make something else.&lt;/P&gt;&lt;P&gt;Is the switch from VLPS to RUN automatic when an interrupt happens? (LIN or LPTMR for instance). At the moment I'm invoking&amp;nbsp;POWER_SYS_SetMode also for RUN mode.&lt;/P&gt;&lt;P&gt;Please note that:&lt;/P&gt;&lt;P&gt;if I use the STOP1 or STOP2 mdoe instead of VLPS, I don't have trouble (no resets);&lt;/P&gt;&lt;P&gt;if I use VLPR instead of VLPS, I always have trouble (continously resets).&lt;/P&gt;&lt;P&gt;If I use VLPS (that is my aim) I sometimes have troubles (often resets)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know as soon as you can.&lt;/P&gt;&lt;P&gt;Thank you and kind regards,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 15:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1965765#M41543</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2024-10-02T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966344#M41588</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216715"&gt;@Francesco_Solito&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You need to disable all the peripherals that are not used in VLPS.&lt;/P&gt;
&lt;P&gt;Then, call POWER_SYS_SetMode(VLPS), which disables all the clocks (except SIRC if used in VLPS).&lt;/P&gt;
&lt;P&gt;After the wakeup, call POWER_SYS_SetMode(RUN) to reenable all the clocks, and enable all the peripherals the application needs.&lt;/P&gt;
&lt;P&gt;Regarding the WDOG, I would recommend that you measure the execution time of each API.&lt;/P&gt;
&lt;P&gt;Since the SOSC clock must be disabled in VLPx, the SOSC startup in RUN takes some time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 10:54:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966344#M41588</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-03T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966362#M41591</link>
      <description>Thank you for your answer.&lt;BR /&gt;&lt;BR /&gt;What is a good point where I can put the call to the POWER_SYS_SetMode(RUN)? In the main loop or in each possible wake interrupt?&lt;BR /&gt;&lt;BR /&gt;Consider that my system can be awaken by LIN, by a timer (LPTMR0) and by external interrupts.&lt;BR /&gt;&lt;BR /&gt;I don't use the SOSC clock in my application.&lt;BR /&gt;&lt;BR /&gt;Is there a way to check into software that all the clocks and peripherals have switched to the selected power mode? Or checking the return value of POWER_SYS_SetMode is enough to be sure that everything has completed?&lt;BR /&gt;&lt;BR /&gt;Please let me know as soon as you can.&lt;BR /&gt;&lt;BR /&gt;Thank you and kind regards,&lt;BR /&gt;&lt;BR /&gt;Francesco</description>
      <pubDate>Thu, 03 Oct 2024 11:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966362#M41591</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2024-10-03T11:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966782#M41621</link>
      <description>&lt;P&gt;Hi Francesco,&lt;/P&gt;
&lt;P&gt;In general, the ISRs should be as short as possible, the system clock switching takes some time.&lt;/P&gt;
&lt;P&gt;You can use the CLOCK_SYS_GetFreq() of the clock driver to verify the clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 07:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1966782#M41621</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-04T07:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1967803#M41683</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Thank you very much, but It's not clear to me where to put the call to POWER_SYS_SetMode(RUN). In each ISR that can wake-up my system? Or in the main loop?&lt;BR /&gt;&lt;BR /&gt;Is the CLOCK_SYS_GetFreq() already called into POWER_SYS_SetMode()? Or do I have to call it explicitly?&lt;BR /&gt;&lt;BR /&gt;What could be the explanation that if I use STOP1/STOP2 I don't have troubles, instead if I use VLPS I have troubles?&lt;BR /&gt;&lt;BR /&gt;I noticed that in my project the OSIF is instantiated. Could there be something related to this?&lt;BR /&gt;&lt;BR /&gt;Please try to answer point by point so it is simpler to me to bettere understand.&lt;BR /&gt;&lt;BR /&gt;Thank you very much and kind regards,&lt;BR /&gt;&lt;BR /&gt;Francesco</description>
      <pubDate>Mon, 07 Oct 2024 09:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1967803#M41683</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2024-10-07T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1967907#M41693</link>
      <description>&lt;P&gt;Hi Francesco,&lt;/P&gt;
&lt;P&gt;As I said, in general, ISRs should not be that long, POWER_SYS_SetMode() should be called from main().&lt;/P&gt;
&lt;P&gt;Calling CLOCK_SYS_GetFreq() is up to you, if you want to confirm a clock configuration. The POWER_SYS_SetMode() sets the clocks.&lt;/P&gt;
&lt;P&gt;Not sure about the OSIF. Can you disable the WDOG and see where it is stuck?&lt;/P&gt;
&lt;P&gt;Is the core waiting in a loop for a flag to be set, like a clock valid flag etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 13:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1967907#M41693</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-07T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1971356#M41899</link>
      <description>Hello. Thanks for suggestions.&lt;BR /&gt;&lt;BR /&gt;I tried to disable the WDOG, but when the system fails I'm not able to see where it is stuck, because the debugger looses the communication.&lt;BR /&gt;&lt;BR /&gt;I also tried putting a debug pin toggling in some critical part of the sofware, but I still didn't discover the problem. What I noticed with my debug pin is that I set to 1 the pin before calling POWER_SYS_SetMode(VLPS, POWER_MANAGER_POLICY_AGREEMENT) and I clear it to 0 after POWER_SYS_SetMode(VLPS, POWER_MANAGER_POLICY_AGREEMENT); what I see in the oscilloscope is that when the issue happens the debug pin remains high, as if the application was stuck into POWER_SYS_SetMode or as if interrupt were disabled. So I also checked global interrupts, but they are correctly enabled also when the issue happens.&lt;BR /&gt;&lt;BR /&gt;I also tried increasing heap and stack in the linker file, but the issue happens anyway.&lt;BR /&gt;&lt;BR /&gt;Only with STOP1/STOP2 the issue doesn't happen. Does this suggest something to you?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Francesco</description>
      <pubDate>Thu, 10 Oct 2024 12:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1971356#M41899</guid>
      <dc:creator>Francesco_Solito</dc:creator>
      <dc:date>2024-10-10T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x VLPS to RUN</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1972140#M41951</link>
      <description>&lt;P&gt;Hello Francesco,&lt;/P&gt;
&lt;P&gt;If the debugger loses the connection, the MCU is in the VLPS mode. But I would recommed that you measure the power consumption of the MCU. After the wakeup event, you should see an increase in the power consumption again.&lt;/P&gt;
&lt;P&gt;You could use CLKOUT to output any system clock, e.g. the BUS_CLK. This example uses CLKOUT:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-RTC-VLPS/ta-p/1119655" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-RTC-VLPS/ta-p/1119655&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So, you should see when the MCU enters VLPS, when it leaves VLPS, and when the power driver changes the clock configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GPIO should be cleared as the first thing in the wakeup interrupt not after POWER_SYS_SetMode(VLPS).&lt;/P&gt;
&lt;P&gt;Also, make sure you don't call POWER_SYS_SetMode(VLPS) from an interrupt routine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 11:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-VLPS-to-RUN/m-p/1972140#M41951</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-10-11T11:20:27Z</dc:date>
    </item>
  </channel>
</rss>

