<?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 How do I get the wake source for K344 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-do-I-get-the-wake-source-for-K344/m-p/2003827#M43729</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I looked at the S32K3 Low Power Management AN and demos, but those demos uses DS3.4, which I couldn't open and compile.&amp;nbsp;Is there a demo of DS3.5 available?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a problem with low power Management. After the MCU is awakened, the reset type obtained by using Power_Ip_GetResetReason() is MCU_WAKEUP_REASON, and this is&amp;nbsp;correct. But when I used Wkpu Ip GetInputState() to get the wake source, I didn't get the correct result.&amp;nbsp;&amp;nbsp;I don't know why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZDDL_2-1732804683081.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313166iCDE40D937314B581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZDDL_2-1732804683081.png" alt="ZDDL_2-1732804683081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZDDL_1-1732804624327.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313165i0595748CE9C8322A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZDDL_1-1732804624327.png" alt="ZDDL_1-1732804624327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my test project.&amp;nbsp;I hope someone could help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 14:42:46 GMT</pubDate>
    <dc:creator>ZDDL</dc:creator>
    <dc:date>2024-11-28T14:42:46Z</dc:date>
    <item>
      <title>How do I get the wake source for K344</title>
      <link>https://community.nxp.com/t5/S32K/How-do-I-get-the-wake-source-for-K344/m-p/2003827#M43729</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I looked at the S32K3 Low Power Management AN and demos, but those demos uses DS3.4, which I couldn't open and compile.&amp;nbsp;Is there a demo of DS3.5 available?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a problem with low power Management. After the MCU is awakened, the reset type obtained by using Power_Ip_GetResetReason() is MCU_WAKEUP_REASON, and this is&amp;nbsp;correct. But when I used Wkpu Ip GetInputState() to get the wake source, I didn't get the correct result.&amp;nbsp;&amp;nbsp;I don't know why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZDDL_2-1732804683081.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313166iCDE40D937314B581/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZDDL_2-1732804683081.png" alt="ZDDL_2-1732804683081.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZDDL_1-1732804624327.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313165i0595748CE9C8322A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZDDL_1-1732804624327.png" alt="ZDDL_1-1732804624327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is my test project.&amp;nbsp;I hope someone could help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 14:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-do-I-get-the-wake-source-for-K344/m-p/2003827#M43729</guid>
      <dc:creator>ZDDL</dc:creator>
      <dc:date>2024-11-28T14:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the wake source for K344</title>
      <link>https://community.nxp.com/t5/S32K/How-do-I-get-the-wake-source-for-K344/m-p/2003927#M43730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232867"&gt;@ZDDL&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can refer to the following examples:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Low-Power-Management-AN-and-demos-RTD-4-0-0-amp-5-0-0/ta-p/1993152" target="_blank"&gt;S32K3 Low Power Management AN and demos RTD 4.0.0 &amp;amp; 5.0.0 - NXP Community&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For the wakeup source, please try reading the registers directly:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;uint32_t WISR_Value;
uint32_t WISR64_Value;

void WKPU_Handler(void)
{
	/*store the WISR value which indicate the wake up source.*/
	WISR_Value = IP_WKPU-&amp;gt;WISR;
	WISR64_Value = IP_WKPU-&amp;gt;WISR_64;
	if(MCU_WAKEUP_REASON == Power_Ip_GetResetReason())
	{
		printf("Reset reason = MCU_WAKEUP_REASON\r\n");
	}
	printf("WISR = %"PRIu32",", WISR_Value);
	printf("WISR64 = %"PRIu32".\n", WISR64_Value);
	/*Clear the flag by writing 1.*/
	IP_WKPU-&amp;gt;WISR = 0xffffffff;
	IP_WKPU-&amp;gt;WISR_64 = 0xffffffff;
	__asm("dsb");
	__asm("isb");
}&lt;/LI-CODE&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 21:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-do-I-get-the-wake-source-for-K344/m-p/2003927#M43730</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-11-28T21:04:22Z</dc:date>
    </item>
  </channel>
</rss>

