<?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 Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2068929#M47183</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;I am encountering a hard fault when using the predefined structure Power_Ip_aModeConfigPB[1] (declared in Power_Ip_PBcfg.c) to enter standby mode with the Power_Ip_SetMode() function. However, when I copy the structure and assign it a different name, Power_Ip_aModeConfigPB_1[0], it works as expected.&lt;/P&gt;&lt;P class=""&gt;I am using the &lt;STRONG&gt;S32K324&lt;/STRONG&gt; controller for this setup.&lt;/P&gt;&lt;P class=""&gt;Screenshots of the original structure&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre-defined structure.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329935i617D2D1A6E0791FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pre-defined structure.png" alt="Pre-defined structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P class=""&gt;Screenshots of the&amp;nbsp;modified structure&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="user defined strcture.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329936iDE5588B94E9F3FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="user defined strcture.png" alt="user defined strcture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Screenshots of the function call&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="function call.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329937iF26A0422DBA9AC9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="function call.png" alt="function call.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Could anyone help me understand why this is happening and how I can resolve this issue?&lt;/P&gt;&lt;P class=""&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 18:21:28 GMT</pubDate>
    <dc:creator>Prasad_330</dc:creator>
    <dc:date>2025-03-26T18:21:28Z</dc:date>
    <item>
      <title>Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2068929#M47183</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;I am encountering a hard fault when using the predefined structure Power_Ip_aModeConfigPB[1] (declared in Power_Ip_PBcfg.c) to enter standby mode with the Power_Ip_SetMode() function. However, when I copy the structure and assign it a different name, Power_Ip_aModeConfigPB_1[0], it works as expected.&lt;/P&gt;&lt;P class=""&gt;I am using the &lt;STRONG&gt;S32K324&lt;/STRONG&gt; controller for this setup.&lt;/P&gt;&lt;P class=""&gt;Screenshots of the original structure&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre-defined structure.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329935i617D2D1A6E0791FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pre-defined structure.png" alt="Pre-defined structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P class=""&gt;Screenshots of the&amp;nbsp;modified structure&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="user defined strcture.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329936iDE5588B94E9F3FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="user defined strcture.png" alt="user defined strcture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Screenshots of the function call&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="function call.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329937iF26A0422DBA9AC9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="function call.png" alt="function call.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Could anyone help me understand why this is happening and how I can resolve this issue?&lt;/P&gt;&lt;P class=""&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 18:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2068929#M47183</guid>
      <dc:creator>Prasad_330</dc:creator>
      <dc:date>2025-03-26T18:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069344#M47216</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229543"&gt;@Prasad_330&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't see any reason for a fault exception in the description you shared, just to be sure, please check all the compiler options in the project - it must be set precisely as per to RTD release notes.&lt;/P&gt;
&lt;P&gt;Can you share the configuration of the power mode?&lt;/P&gt;
&lt;P&gt;Can you step through the function and locate the fault instruction?&lt;/P&gt;
&lt;P&gt;In general, follow these documents to debug the fault exception:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX/ta-p/1595570" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX/ta-p/1595570&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 08:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069344#M47216</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-03-27T08:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069388#M47221</link>
      <description>&lt;P&gt;Thanks danielmartynek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I am trying to watch the content of the predefined structure Power_Ip_aModeConfigPB[1] in the watch window.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;The values displayed are not as expected:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;ModeConfigId is defined as 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;PowerMode is defined as POWER_IP_STANDBY_MODE (16).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;However, in the watch window, the values are different:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;ModeConfigId shows a value of 16795441.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;PowerMode shows 268435456.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;For a user-defined structure, the values match what is defined.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;I have attached a screenshot for reference.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&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="Prasad_330_0-1743066834519.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330064iAECEA4F1032A2D9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Prasad_330_0-1743066834519.png" alt="Prasad_330_0-1743066834519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 09:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069388#M47221</guid>
      <dc:creator>Prasad_330</dc:creator>
      <dc:date>2025-03-27T09:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069543#M47237</link>
      <description>&lt;P&gt;Which RTD revision is it?&lt;/P&gt;
&lt;P&gt;Can you share the .mex file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 14:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2069543#M47237</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-03-27T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070000#M47246</link>
      <description>&lt;P&gt;We are currently using the RTD version &lt;STRONG&gt;S32K3_RTD_3_0_0_P07_D2306_ASR_REL_4_7_REV_0000_20230629&lt;/STRONG&gt;. Please find the attached .mex file for your reference.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 04:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070000#M47246</guid>
      <dc:creator>Prasad_330</dc:creator>
      <dc:date>2025-03-28T04:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070166#M47255</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229543"&gt;@Prasad_330&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't see any .mex file attached.&lt;/P&gt;
&lt;P&gt;Also, please confirm the compiler options are set correctly, and provide more information about the fault exception.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 08:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070166#M47255</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-03-28T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070223#M47260</link>
      <description>&lt;P&gt;yes i have missed the attachment&lt;/P&gt;&lt;P&gt;I am sharing the .mex file&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attachment&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 09:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070223#M47260</guid>
      <dc:creator>Prasad_330</dc:creator>
      <dc:date>2025-03-28T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070968#M47311</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229543"&gt;@Prasad_330&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for the .mex.&lt;/P&gt;
&lt;P&gt;I see you disable CM7_0 clock, which is not correct.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1743410484479.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/330478i2099E8054D2BEBD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1743410484479.png" alt="danielmartynek_0-1743410484479.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K344-StangBy-Configuration-Options/m-p/2005542" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K344-StangBy-Configuration-Options/m-p/2005542&lt;/A&gt;&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;</description>
      <pubDate>Mon, 31 Mar 2025 08:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2070968#M47311</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-03-31T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2073598#M47453</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; Danielmartynek,&lt;/P&gt;&lt;P&gt;The issue was caused by the use of #pragma pack (1),&amp;nbsp;and the problem occurred because I wasn't using the unpack directive in the other folder. The hard fault issue is solved&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the 'Prepare for Standby' mode just before entering standby, but I have observed that there is little to no difference in current consumption, whether I use it or not. Could you please help me understand why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 10:05:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2073598#M47453</guid>
      <dc:creator>Prasad_330</dc:creator>
      <dc:date>2025-04-03T10:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault with Power_Ip_SetMode() Using Predefined Structure on S32K324 Controller</title>
      <link>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2074124#M47475</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229543"&gt;@Prasad_330&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have a look at the source code (Power_Ip.c) to see how the modes are called and what they do.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1743691859277.png" style="width: 629px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/331301i9049DEBB60A4FC54/image-dimensions/629x324?v=v2" width="629" height="324" role="button" title="danielmartynek_0-1743691859277.png" alt="danielmartynek_0-1743691859277.png" /&gt;&lt;/span&gt;&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>Fri, 04 Apr 2025 07:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hard-Fault-with-Power-Ip-SetMode-Using-Predefined-Structure-on/m-p/2074124#M47475</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-04-04T07:15:29Z</dc:date>
    </item>
  </channel>
</rss>

