<?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: S32K VLPS mode entry and exit in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980159#M5638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I saw in code sent that the filter needs to enable for detecting the interrupt that's why I have enabled it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is it not required to enable the filter for the port pin to detect interrupt?&lt;/P&gt;&lt;P&gt;&amp;nbsp; And about CAN_WU_MTC_WUMF bit of MCR is set whenever the message received after filtration, I have read this in Reference manual of S32k.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please tell me whether I have configured register for CAN wakeup in the right manner or not?&lt;/P&gt;&lt;P&gt;If not can you please tell me how to enable CAN wakeup for 0x123456 this example ID in&amp;nbsp; s32k116?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2020 06:08:57 GMT</pubDate>
    <dc:creator>shindeu66</dc:creator>
    <dc:date>2020-02-17T06:08:57Z</dc:date>
    <item>
      <title>S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980150#M5629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have followed the Power management AN5425 pdf provided by Nxp for Power mode and exit&amp;nbsp; s32k116.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I have done for RUN to VLPS mode entry and tested the current consumption it is 4mA, But as per datasheet, it should be less than 1mA.&amp;nbsp;&amp;nbsp;So how to further reduce the current consumption by the controller?&lt;/P&gt;&lt;P&gt;&amp;nbsp;And also how to disable the clock monitors?&lt;/P&gt;&lt;P&gt;And if possible also let me know how to come to normal RUN mode through CAN using pretended network mode.&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void RUN_to_VLPS (void)&lt;BR /&gt;{&lt;BR /&gt;/* Adjust SCG settings to meet maximum frequencies value */&lt;BR /&gt;scg_disable_pll_and_firc();&lt;BR /&gt;/* Enable SLEEPDEEP bit in the Core&lt;BR /&gt;* (Allow deep sleep modes) */&lt;BR /&gt;S32_SCB -&amp;gt;SCR|=FSL_SCB_SCR_SLEEPDEEP_MASK;&lt;BR /&gt;/* Allow very low power run mode */&lt;BR /&gt;SMC-&amp;gt;PMPROT |= SMC_PMPROT_AVLP_MASK;&lt;BR /&gt;/* Select VLPS Mode */&lt;BR /&gt;SMC-&amp;gt;PMCTRL=SMC_PMCTRL_STOPM(0b10);&lt;BR /&gt;PMC-&amp;gt;REGSC |= PMC_REGSC_BIASEN_MASK;&lt;BR /&gt;/* Check if current mode is RUN mode */&lt;BR /&gt;if(SMC-&amp;gt;PMSTAT == 0x01)&lt;BR /&gt;{&lt;BR /&gt;/* Go to deep sleep mode */&lt;BR /&gt;asm("WFI");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 12:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980150#M5629</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-04T12:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980151#M5630</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/shindeu66@gmail.com"&gt;shindeu66@gmail.com&lt;/A&gt;,&lt;BR /&gt;Please disconnect the debugger and power-cycle the MCU, otherwise, the MCU enters an emulated Stop mode instead.&lt;BR /&gt;All GPIOs retain their state in Stop modes, make sure you are not driving any external load.&lt;BR /&gt;Do you have an EVB or your own board? Where do you measure the current?&lt;/P&gt;&lt;P&gt;There are a few examples you can refer to:&lt;BR /&gt;power_mode_switch_s32k116 SDK example in the S32 design studio&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-341788"&gt;https://community.nxp.com/docs/DOC-341788&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two clock monitors on S32K11x: &lt;BR /&gt;The SOSC clock monitor:&amp;nbsp;Section 28.1.4 System clock and clock monitor requirement&lt;BR /&gt;CMU FIRC monitors:&amp;nbsp;Section 30.1 CMU chip-specific information&lt;BR /&gt;Please ensure that CMU is gated by its PCC.CGC before entering any Stop mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pretended network mode can be used in STOP1/2 but not in VLPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980151#M5630</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-06T12:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980152#M5631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me,&amp;nbsp; How to get back in Normal RUN from STOP mode using CAN pretended network mode and Pin interrupt ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 05:21:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980152#M5631</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-07T05:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980153#M5632</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/shindeu66@gmail.com"&gt;shindeu66@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;There is no Pretending mode wake-up example available.&lt;BR /&gt;But the FlexCAN SDK driver supports it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102644i9FC36F266242BA9D/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Example S32K144 RTC VLPS S32DS.R1 is using a Pin interrupt as a wake-up source, for instance.&lt;BR /&gt;You don’t need to reconfigure the CAN_RX pin to GPIO as the pin interrupt works in all the digital functions of a pin.&lt;BR /&gt;Just enable this interrupt (PORTx_PCRn) before the MCU enters VLPS.&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, 07 Feb 2020 13:22:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980153#M5632</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-07T13:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980154#M5633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel Martynek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my current project, my lead is not using FlexCan Component from the S32 studio. He is configured CAN through the Vector Geny tool.&lt;BR /&gt;How I will configure then this PN mode ?.&lt;/P&gt;&lt;P&gt;and one more question sir,&lt;/P&gt;&lt;P&gt;who is the caller of this function how decided&amp;nbsp; PORTC_IRQHandler?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 10:27:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980154#M5633</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-10T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980155#M5634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Shinde Umesh,&lt;/P&gt;&lt;P&gt;Unfortunately, I don’t have any experience with the Vector Geny tool.&lt;BR /&gt;I would recommend that you to go through the Vector documentation or to contact Vector.&lt;BR /&gt;The PNET mode is explained in the S32K1xx RM though.&lt;BR /&gt; &lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103278i41C9302160A6D80B/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I’m not sure if I understand what you mean.&lt;BR /&gt;The PORTC_IRQHandler is called when a PORTC interrupt is detected by the PORT module and requested to the Core NVIC.&amp;nbsp;So, the interrupt must be enabled in the PORTC module and NVIC.&lt;BR /&gt;There is one interrupt for the whole PORTC, the handler must read either PORT_ISFR or PORT_PCRn to determine the source of the interrupt and clear the interrupt flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980155#M5634</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-10T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980156#M5635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel Martynek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As given example by you, in this, you are using RTC along with Port INTERRUPT as I understood. But in my case, I just want that if any button is pressed or any CAN message is arrived then it should come back to the normal RUN mode from VLPS mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 12:54:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980156#M5635</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-12T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980157#M5636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made one file to enter VLPS mode and to come back from it through Pin Interrupt, I referred to the project sent by you previously.&lt;/P&gt;&lt;P&gt;Please let me whether any modification is required in wakeup and sleep functionality.&lt;/P&gt;&lt;P&gt;I am asking these questions because first time I am designing this functionality for the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#include "S32K116.h"&lt;/P&gt;&lt;P&gt;void init_NVIC(void);&lt;BR /&gt;void PORTE_IRQHandler(void);&lt;BR /&gt;void RUN_to_VLPS(void);&lt;BR /&gt;#define SWMAX_VALUE 5000&lt;BR /&gt;extern uint16_t Cntr;&lt;BR /&gt;volatile uint8_t vlps = 1;&lt;BR /&gt;volatile uint8_t sleep_mode_cmd = 0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void Mode_Change(void)&lt;BR /&gt;{&lt;BR /&gt; init_NVIC();&lt;BR /&gt; PORTE-&amp;gt;PCR[5] = 0x00008000; // Lock the Port Pin PTE5&lt;BR /&gt; PORTE-&amp;gt;PCR[5] = PORT_PCR_IRQC(9); // Enable Interrupt on Rising-Edge&lt;BR /&gt; if((Cntr &amp;gt;= SWMAX_VALUE)) /*Enter to VLPS mode*/&lt;BR /&gt; {&lt;BR /&gt; //CAN_Wakeup_Config();&lt;BR /&gt; RUN_to_VLPS(); &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; if(((CAN0-&amp;gt;WU_MTC &amp;gt;&amp;gt; CAN_WU_MTC_WUMF_SHIFT)&amp;amp;CAN_WU_MTC_WUMF_WIDTH) == 1u)&lt;BR /&gt; {&lt;BR /&gt; CAN0-&amp;gt;WU_MTC = CAN_WU_MTC_WUMF(1); // Clear the wakeup bit after successful wakeup &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if 1&lt;/P&gt;&lt;P&gt;void RUN_to_VLPS(void)&lt;BR /&gt;{&lt;BR /&gt; /* Disable the JTAG port pins */&lt;BR /&gt; /* Disable Adc Pins */&lt;/P&gt;&lt;P&gt;PMC-&amp;gt;REGSC |= PMC_REGSC_BIASEN(1); // [1] CLKBIASDIS = 1 In VLPS mode, the bias current for SIRC, FIRC, PLL is disabled&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /* Disable the Fosc and Sosc from chip*/&lt;BR /&gt; SCG-&amp;gt;FIRCCSR = SCG_FIRCCSR_FIRCEN(0);&lt;BR /&gt; while(SCG-&amp;gt;FIRCCSR &amp;amp; (1 &amp;lt;&amp;lt; 24));&lt;BR /&gt; SCG-&amp;gt;SOSCCSR = SCG_SOSCCSR_SOSCEN(0);&lt;BR /&gt; &lt;BR /&gt; S32_SCB-&amp;gt;SCR |= S32_SCB_SCR_SLEEPDEEP_MASK|0x2; /* allow deep sleep mode0 */&lt;BR /&gt; SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP(1); /* allow very low power mode*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; SMC-&amp;gt;PMCTRL = SMC_PMCTRL_STOPM(2);&lt;/P&gt;&lt;P&gt;if(SMC-&amp;gt;PMSTAT == 0x01)&lt;BR /&gt; {&lt;BR /&gt; asm("WFI");&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if 0&lt;BR /&gt;void CAN_Wakeup_Config(void)&lt;BR /&gt;{&lt;BR /&gt; /* freez mode enter sequence */&lt;/P&gt;&lt;P&gt;CAN0-&amp;gt;MCR = CAN_MCR_FRZ(1); // Enter to Freez mode to set dependent Registers&lt;BR /&gt; CAN0-&amp;gt;MCR = CAN_MCR_HALT(1); // set the HLT bit to enter in freez mode&lt;/P&gt;&lt;P&gt;if( ((CAN0-&amp;gt;MCR) &amp;gt;&amp;gt; CAN_MCR_MDIS_SHIFT)&amp;amp;CAN_MCR_MDIS_WIDTH) == 1u )&lt;BR /&gt; {&lt;BR /&gt; CAN0-&amp;gt;MCR = CAN_MCR_MDIS(0); // clear module disable bit&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if(((CAN0-&amp;gt;MCR &amp;gt;&amp;gt; CAN_MCR_FRZACK_SHIFT )&amp;amp;CAN_MCR_FRZACK_WIDTH) == 1u)&lt;BR /&gt; {&lt;BR /&gt; CAN0-&amp;gt;MCR = CAN_MCR_PNET_EN(1); // FRZ mode only&lt;BR /&gt; CAN0-&amp;gt;FLT_ID1 = CAN_FLT_ID1_FLT_ID1(0x18FEF519); // FRZ mode only&lt;BR /&gt; CAN0-&amp;gt;FLT_ID2_IDMASK = CAN_FLT_ID2_IDMASK_IDE_MSK(1); // FRZ mode only&lt;BR /&gt; CAN0-&amp;gt;FLT_ID2_IDMASK = CAN_FLT_ID2_IDMASK_FLT_ID2_IDMASK(0x14FF05E8); // FRZ mode only&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; CAN0-&amp;gt;MCR = CAN_MCR_FRZ(0); // Exit from freez mode &lt;BR /&gt; CAN0-&amp;gt;MCR = CAN_MCR_HALT(0); // Clear the HLT bit to exit in freez mode&lt;/P&gt;&lt;P&gt;/* CAN Pretended Network mode configuration */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; CAN0-&amp;gt;IMASK1= CAN_IMASK1_BUF31TO0M(0xffff); // Allow MB 0_15 for INTR generation&lt;BR /&gt; &lt;BR /&gt; CAN0-&amp;gt;CTRL1_PN = CAN_CTRL1_PN_WUMF_MSK(1); // wakeup by match flag &lt;BR /&gt; CAN0-&amp;gt;CTRL1_PN = CAN_CTRL1_PN_NMATCH(1); // filter criteria must match once&lt;BR /&gt; CAN0-&amp;gt;CTRL1_PN = CAN_CTRL1_PN_IDFS(1); // greater than or equal to targer value&lt;BR /&gt; CAN0-&amp;gt;CTRL1_PN = CAN_CTRL1_PN_FCS(0); // Msg ID filter only &lt;BR /&gt; CAN0-&amp;gt;FLT_ID1 = CAN_FLT_ID1_FLT_IDE(1); // Extended CAN messages &lt;BR /&gt;}&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;void init_NVIC(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;// PORTE_interrupt&lt;BR /&gt; S32_NVIC-&amp;gt;ICPR[1] = (1 &amp;lt;&amp;lt; (61 % 32));&lt;BR /&gt; S32_NVIC-&amp;gt;ISER[1] = (1 &amp;lt;&amp;lt; (61 % 32));&lt;BR /&gt; S32_NVIC-&amp;gt;IPR[63] = 0x10; // Priority level 1&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;void PORTE_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; PORTE-&amp;gt;PCR[5] |= (1 &amp;lt;&amp;lt; 24); // [24] ISF = 1 Clear the interrupt flag&lt;BR /&gt; &lt;BR /&gt; PORTE-&amp;gt;DFER |= (1 &amp;lt;&amp;lt; 5); // Digital filter is enabled on the PTC12 pin&lt;/P&gt;&lt;P&gt;if(vlps)&lt;BR /&gt; {&lt;BR /&gt; vlps = 0; // VLPS mode&lt;BR /&gt; S32_SCB-&amp;gt;SCR = 0x04;&lt;BR /&gt; // [4] SEVONPEND = 0 only enabled interrupts can wakeup&lt;BR /&gt; // [2] SLEEPDEEP = 1 deep sleep&lt;BR /&gt; // [1] SLEEPONEXIT = 0 do not enter deep sleep on return from an ISR&lt;BR /&gt; &lt;BR /&gt; (void)S32_SCB-&amp;gt;SCR; // make sure it is written before it leaves the ISR&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; vlps = 1;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 05:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980157#M5636</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-13T05:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980158#M5637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Shinde Umesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have found a few issues.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PTE5 is the CAN0_TX pin not the RX pin.&lt;/LI&gt;&lt;LI&gt;The PORTE interrupt ID is not 63 but 9 on S32K11x.&lt;/LI&gt;&lt;LI&gt;The code disables the FIRC and SOSC clocks, but the first, the SIRC clock must be the system clock.&lt;/LI&gt;&lt;LI&gt;Once the MCU is back in the RUN mode, I guess, you want to re-enable the previous clock configuration (application-dependent).&lt;/LI&gt;&lt;LI&gt;The CAN_WU_MTC_WUMF flag won’t be set since the wake-up source is the PORTE interrupt.&lt;/LI&gt;&lt;LI&gt;Why do you enable the PTE5 filter in the PORTE handler? This should be done before the interrupt is enabled.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 13:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980158#M5637</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-13T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980159#M5638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I saw in code sent that the filter needs to enable for detecting the interrupt that's why I have enabled it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is it not required to enable the filter for the port pin to detect interrupt?&lt;/P&gt;&lt;P&gt;&amp;nbsp; And about CAN_WU_MTC_WUMF bit of MCR is set whenever the message received after filtration, I have read this in Reference manual of S32k.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please tell me whether I have configured register for CAN wakeup in the right manner or not?&lt;/P&gt;&lt;P&gt;If not can you please tell me how to enable CAN wakeup for 0x123456 this example ID in&amp;nbsp; s32k116?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 06:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980159#M5638</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-17T06:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980160#M5639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Shinde Umesh,&lt;/P&gt;&lt;P&gt;The filter is not requires, I was just wondering why you enabled that feature in the handler, it should be enabled before the interrupt triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I already mention, in VLPS, the FlexCAN cannot be a wake up source.&lt;/P&gt;&lt;P&gt;The port interrupt can be used and once the MCU is in RUN mode again, you can enable the FlexCAN module, the first message will be lost of course.&lt;/P&gt;&lt;P&gt;You can use the PN mode, but it works in&amp;nbsp;STOP1/2 only.&lt;/P&gt;&lt;P&gt;Please use the FlexCAN SDK driver and Processor expert to configure the PN mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980160#M5639</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-18T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980161#M5640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Mr. Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 04:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/980161#M5640</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-19T04:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/1182043#M8789</link>
      <description>&lt;P&gt;Hello Mr.Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;Recently,&lt;SPAN class="copied highLight"&gt;I also have some problems on RUN and VLSP mode configuration, before you answer, I am the following information is correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="copied"&gt;1. S32K144 chips do not have CAN RXD wake function&amp;nbsp;&lt;SPAN&gt;module&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Before enter VLSP mode, need to configure the RTC CLOCK module&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and The following is my adopted the SDK software configuration module:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;static void gpio_port_int_init(void)&lt;BR /&gt;{&lt;BR /&gt;INT_SYS_EnableIRQ(PORTB_IRQn);&lt;BR /&gt;INT_SYS_InstallHandler(PORTB_IRQn, &amp;amp;gpio_portb_irq, (isr_t *)0);&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQ(PORTD_IRQn);&lt;BR /&gt;INT_SYS_InstallHandler(PORTD_IRQn, &amp;amp;gpio_portd_irq, (isr_t *)0);&lt;/P&gt;&lt;P&gt;INT_SYS_EnableIRQ(PORTE_IRQn);&lt;BR /&gt;INT_SYS_InstallHandler(PORTE_IRQn, &amp;amp;gpio_porte_irq, (isr_t *)0);&lt;/P&gt;&lt;P&gt;PINS_DRV_SetPinIntSel(GPIO_CP_UNLOCK_PORT,GPIO_CP_UNLOCK_PIN,PORT_DMA_INT_DISABLED);&lt;BR /&gt;PINS_DRV_SetPinIntSel(GPIO_CP_WAKE_PORT,GPIO_CP_WAKE_PIN,PORT_DMA_INT_DISABLED);&lt;BR /&gt;PINS_DRV_SetPinIntSel(GPIO_CC_WAKE_PORT,GPIO_CC_WAKE_PIN,PORT_DMA_INT_DISABLED);&lt;BR /&gt;PINS_DRV_SetPinIntSel(GPIO_VCU_WAKE_PORT,GPIO_VCU_WAKE_PIN,PORT_DMA_INT_DISABLED);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void init_NVIC(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PINS_DRV_SetPinIntSel(PORTE,5U,PORT_INT_RISING_EDGE);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void Power_RUN_to_STOP (void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PMC-&amp;gt;REGSC |= PMC_REGSC_BIASEN(1); // [1] CLKBIASDIS = 1 In VLPS mode, the bias current for SIRC, FIRC, PLL is disabled&lt;BR /&gt;/* Disable the Fosc and Sosc from chip*/&lt;BR /&gt;SCG-&amp;gt;FIRCCSR = SCG_FIRCCSR_FIRCEN(0);&lt;BR /&gt;while(SCG-&amp;gt;FIRCCSR &amp;amp; (1 &amp;lt;&amp;lt; 24));&lt;BR /&gt;SCG-&amp;gt;SOSCCSR = SCG_SOSCCSR_SOSCEN(0);&lt;/P&gt;&lt;P&gt;S32_SCB-&amp;gt;SCR |= S32_SCB_SCR_SLEEPDEEP_MASK|0x2; /* allow deep sleep mode0 */&lt;BR /&gt;SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP(1); /* allow very low power mode*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SMC-&amp;gt;PMCTRL = SMC_PMCTRL_STOPM(2);&lt;/P&gt;&lt;P&gt;if(SMC-&amp;gt;PMSTAT == 0x01)&lt;BR /&gt;{&lt;BR /&gt;asm("WFI");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void power_set_mode(POWER_SYS_TYPE mod)&lt;BR /&gt;{&lt;BR /&gt;if(mod == POWER_SYS_SLEEP)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;init_NVIC();&lt;BR /&gt;//power_can_wakeup_set();&lt;BR /&gt;Power_RUN_to_STOP();&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Katrinal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 06:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/1182043#M8789</guid>
      <dc:creator>1090097669</dc:creator>
      <dc:date>2020-11-12T06:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K VLPS mode entry and exit</title>
      <link>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/1183406#M8825</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hello Shinde Umesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Recently,in VLPS mode, I also encountered the same problem. How did you solve it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 08:41:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-VLPS-mode-entry-and-exit/m-p/1183406#M8825</guid>
      <dc:creator>1090097669</dc:creator>
      <dc:date>2020-11-15T08:41:53Z</dc:date>
    </item>
  </channel>
</rss>

