<?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 Interrupt not working after VLPS-&amp;gt;RUN mode transition in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Interrupt-not-working-after-VLPS-gt-RUN-mode-transition/m-p/1065668#M7257</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;I am using MCAL S32K14X_MCAL4_0_RTM_HF3_1_0_4. Currently I am experimenting MCU RUN-&amp;gt;VLPS and VLPS-&amp;gt;RUN mode transition. I am able to switch to VLPS mode successfully from RUN mode. ECU will wait in WFI instruction till GPIO interrupt occurs(Mcu_SetMode(Sleep_Config)). Falling edge transition in a GPIO pin detect wakeup and triggers interrupt and comes out of the VLPS and return to RUN mode and starts normal TASK execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after waking up from VLPS mode, CAN interrupt as well as other MCAL interrupts are not triggering, which was working earlier in RUN mode. But Cortex-M4 System Tick Interrupt is triggering well even after waking up from VLPS mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PMSTAT register in debugger shows it is RUN mode only. My concern is why interrupts are not working after waking up from the VLPS mode ? Even interrupts are enabled in MCAL modules and BASEPRI register shows&amp;nbsp; 0x00000000 only during this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope clock re-initialization is achieved by using Mcu_SetMode(Run_Config) API in MCAL after waking up from VLPS .&lt;/P&gt;&lt;P&gt;Before going to VLPS mode, MCAL modules are not deinitialized. Hence after wakeup from VLPS, none of the MCAL modules are reinitialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your kind support.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2020 13:16:24 GMT</pubDate>
    <dc:creator>priyakrish</dc:creator>
    <dc:date>2020-08-25T13:16:24Z</dc:date>
    <item>
      <title>Interrupt not working after VLPS-&gt;RUN mode transition</title>
      <link>https://community.nxp.com/t5/S32K/Interrupt-not-working-after-VLPS-gt-RUN-mode-transition/m-p/1065668#M7257</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;I am using MCAL S32K14X_MCAL4_0_RTM_HF3_1_0_4. Currently I am experimenting MCU RUN-&amp;gt;VLPS and VLPS-&amp;gt;RUN mode transition. I am able to switch to VLPS mode successfully from RUN mode. ECU will wait in WFI instruction till GPIO interrupt occurs(Mcu_SetMode(Sleep_Config)). Falling edge transition in a GPIO pin detect wakeup and triggers interrupt and comes out of the VLPS and return to RUN mode and starts normal TASK execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after waking up from VLPS mode, CAN interrupt as well as other MCAL interrupts are not triggering, which was working earlier in RUN mode. But Cortex-M4 System Tick Interrupt is triggering well even after waking up from VLPS mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PMSTAT register in debugger shows it is RUN mode only. My concern is why interrupts are not working after waking up from the VLPS mode ? Even interrupts are enabled in MCAL modules and BASEPRI register shows&amp;nbsp; 0x00000000 only during this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope clock re-initialization is achieved by using Mcu_SetMode(Run_Config) API in MCAL after waking up from VLPS .&lt;/P&gt;&lt;P&gt;Before going to VLPS mode, MCAL modules are not deinitialized. Hence after wakeup from VLPS, none of the MCAL modules are reinitialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your kind support.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 13:16:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Interrupt-not-working-after-VLPS-gt-RUN-mode-transition/m-p/1065668#M7257</guid>
      <dc:creator>priyakrish</dc:creator>
      <dc:date>2020-08-25T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not working after VLPS-&gt;RUN mode transition</title>
      <link>https://community.nxp.com/t5/S32K/Interrupt-not-working-after-VLPS-gt-RUN-mode-transition/m-p/1065669#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="297824" data-username="priyakrish" href="https://community.nxp.com/people/priyakrish"&gt;Priya Krish&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;My name is Omar and I will gladly answer your questions.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;When the device is in VLPS the CAN is Off. When you do the transition from VLPS to RUN it is important to re-initialize the module.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Best regards,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 19:02:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Interrupt-not-working-after-VLPS-gt-RUN-mode-transition/m-p/1065669#M7258</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-08-27T19:02:34Z</dc:date>
    </item>
  </channel>
</rss>

