<?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: Hard Fault when entering POWER_EnterDeepSleep in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1380059#M47198</link>
    <description>&lt;P&gt;I think I found the difference actually, and it's sort of a result of the code I had taken over. I hadn't realized a coworker of mine had taken&amp;nbsp;&amp;nbsp;SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK out of the 'exclude from deep sleep' bitmask. It looks like due to the growth of the application these banks had started to be used. So I guess the moral of the story is only disable what you know for a fact you're not using.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 21:40:40 GMT</pubDate>
    <dc:creator>bentuline</dc:creator>
    <dc:date>2021-12-01T21:40:40Z</dc:date>
    <item>
      <title>Hard Fault when entering POWER_EnterDeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1375857#M47088</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to implement deep sleep on an LPC54605, and I've run into a problem where upon entering the function POWER_EnterDeepSleep I'll get a hard fault exception (IBUSERR specifically, seen through MCUXpresso LPC Link debugger). Doesn't seem to matter what arguments I provide. I've been making changes to an existing software project, and the chunk of code that performs the sleep/wakeup does seem to work on this hardware so I don't think there's any fundamental hardware issue here. I haven't been able to spot any noticeable differences in the code, even if I move the sleep routine to be the first thing run after clock initialization I'll still see this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any known things to avoid when entering deep sleep on this chip? Most issues I've seen have been with wakeup, although that doesn't seem to be my problem. Alternatively, is the source available for this deep sleep mode? The fact that the driver source is only provided as a binary doesn't help here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 00:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1375857#M47088</guid>
      <dc:creator>bentuline</dc:creator>
      <dc:date>2021-11-24T00:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault when entering POWER_EnterDeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1376736#M47112</link>
      <description>&lt;P&gt;How can I reproduce your issue?&lt;/P&gt;
&lt;P&gt;under SDK folder there is low power demo code power_manager_lpc. Could you test how to revise this demo to showcase your problem?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 05:32:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1376736#M47112</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-11-25T05:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault when entering POWER_EnterDeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1380051#M47196</link>
      <description>&lt;P&gt;Hi Jun,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to replicate this issue in a different environment. I guess what my question really is, is what are the prerequisites to safely enter deep sleep?&lt;/P&gt;&lt;P&gt;I can see that the fault occurs on the instruction "mov.w r12,#128", when r12 has a value of&amp;nbsp;0xffefbf7f (which sounds incorrect). Assuming the attached fsl_power_lib.c from the 2.3 SDK is still fairly representative of the 2.10 SDK, I imagine this corresponds to the line below based on the constant value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;AHBCLKCTRLSET[0] = SYSCON_AHBCLKCTRL_FLASH_MASK;&lt;/P&gt;&lt;P&gt;Not really sure why it would crash here to be honest, since it should just load a constant value into r12. I'm guessing the fault really occurs earlier but it's not clear what the problem would be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1380051#M47196</guid>
      <dc:creator>bentuline</dc:creator>
      <dc:date>2021-12-01T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault when entering POWER_EnterDeepSleep</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1380059#M47198</link>
      <description>&lt;P&gt;I think I found the difference actually, and it's sort of a result of the code I had taken over. I hadn't realized a coworker of mine had taken&amp;nbsp;&amp;nbsp;SYSCON_PDRUNCFG_PDEN_SRAM1_2_3_MASK out of the 'exclude from deep sleep' bitmask. It looks like due to the growth of the application these banks had started to be used. So I guess the moral of the story is only disable what you know for a fact you're not using.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-entering-POWER-EnterDeepSleep/m-p/1380059#M47198</guid>
      <dc:creator>bentuline</dc:creator>
      <dc:date>2021-12-01T21:40:40Z</dc:date>
    </item>
  </channel>
</rss>

