<?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: Why PE_DEBUGHALT / CPU_Interrupt? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023189#M15345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinesh,&lt;/P&gt;&lt;P&gt;In the case of your hardfault, it could be caused by a variety of situations. Ranging from illegal use of funcitons/pointers/variables, not initiating proper clocks, trying to access memory that is not accessable, etc.&lt;/P&gt;&lt;P&gt;You mention that it goes into hardfault after executing&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;AMCLIB_PMSMBemfObsrvAB_F16&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(). If this is true, can you place a breakpoint on the line after and it will stop there. Or does it go into a hardfault during the execution of that function.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I would recommend to step through each step, to better locate where it actually goes into the hardfault.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For further reference in debugging hardfaults you can refer to&amp;nbsp;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2020 20:22:06 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2020-01-20T20:22:06Z</dc:date>
    <item>
      <title>Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023184#M15340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I am using my own board of MKV10Z32VLC7 &amp;amp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;MKE02Z32VLC4&lt;/SPAN&gt; which belongs to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;Cortex-M0+ Based Micro controller.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As we have a product already with &lt;SPAN&gt;MKV10Z32VLC7&amp;nbsp;&lt;/SPAN&gt;and we planned to upgrade to low cost micro controller we choose MKE02Z32VLC4. And now we are migrating the code from &lt;SPAN&gt;MKV10Z32VLC7&amp;nbsp;&lt;/SPAN&gt;to &lt;SPAN&gt;MKE&lt;/SPAN&gt;&lt;SPAN&gt;02&lt;/SPAN&gt;&lt;SPAN&gt;Z32VLC&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;, we are facing the &lt;STRONG&gt;PE_DEBUGHALT&lt;/STRONG&gt; error after the&amp;nbsp;&lt;STRONG&gt;AMCLIB_PMSMBemfObsrvAB_F16&lt;/STRONG&gt;() function call&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have attached the &lt;STRONG&gt;PE_DEBUGHALT&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;capture file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It will be helpful when we solve this issue to proceed further.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is there any motor control library changes required?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Dinesh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2019 05:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023184#M15340</guid>
      <dc:creator>dineshbabu</dc:creator>
      <dc:date>2019-12-28T05:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023185#M15341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinesh,&lt;/P&gt;&lt;P&gt;Could you please confirm the IDE you are using and the version?&lt;/P&gt;&lt;P&gt;Also there is no attachment on your post, could you please reattach it.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023185#M15341</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-03T16:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023186#M15342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina Bruce,&lt;/P&gt;&lt;P&gt;IDE : Codewarrior Development Studio&lt;/P&gt;&lt;P&gt;Version : 10.6&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101508iAE391EF4FB08C447/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2020 04:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023186#M15342</guid>
      <dc:creator>dineshbabu</dc:creator>
      <dc:date>2020-01-04T04:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023187#M15343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinesh,&lt;/P&gt;&lt;P&gt;Could you please follow the instructions in this article. So we can detect were the interrupt is coming from specifically.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/" title="https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/"&gt;Oh my! An Interrupt… | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have done that let me know which interrupt handler is used and we can then determine the root cause.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 22:01:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023187#M15343</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-06T22:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023188#M15344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sabina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the cpu_interrupt captured file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97213iA2240B33EFE69EAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 04:41:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023188#M15344</guid>
      <dc:creator>dineshbabu</dc:creator>
      <dc:date>2020-01-20T04:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why PE_DEBUGHALT / CPU_Interrupt?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023189#M15345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dinesh,&lt;/P&gt;&lt;P&gt;In the case of your hardfault, it could be caused by a variety of situations. Ranging from illegal use of funcitons/pointers/variables, not initiating proper clocks, trying to access memory that is not accessable, etc.&lt;/P&gt;&lt;P&gt;You mention that it goes into hardfault after executing&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;AMCLIB_PMSMBemfObsrvAB_F16&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;(). If this is true, can you place a breakpoint on the line after and it will stop there. Or does it go into a hardfault during the execution of that function.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I would recommend to step through each step, to better locate where it actually goes into the hardfault.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For further reference in debugging hardfaults you can refer to&amp;nbsp;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 20:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Why-PE-DEBUGHALT-CPU-Interrupt/m-p/1023189#M15345</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-20T20:22:06Z</dc:date>
    </item>
  </channel>
</rss>

