<?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>Kinetis MicrocontrollersのトピックRe: Hardfault doesn't appear in debug</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1599211#M64699</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm not very familiar with the ARM Cortex core, but I searched for keywords in the&lt;A href="https://documentation-service.arm.com/static/61efd8352dd99944d05142d1?token=" target="_self"&gt; Arm Cortex-M7 Devices Generic User Guide&lt;/A&gt; and found: Restrictions when using PC or SP. Maybe this is the reason.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Restrictions when using PC or SP.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210929iC50E32C617800303/image-size/large?v=v2&amp;amp;px=999" role="button" title="Restrictions when using PC or SP.png" alt="Restrictions when using PC or SP.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;By the way:&lt;BR /&gt;This problem seems to be related to the use of ARM Cortex. I am afraid that you can get a more accurate answer by contacting ARM's technical support.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 02:35:57 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2023-02-15T02:35:57Z</dc:date>
    <item>
      <title>Hardfault doesn't appear in debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598287#M64685</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I program on MKV56F1M0 and I want to debug a program whose role is to call a second program stored at another address of the chip.&lt;/P&gt;&lt;P&gt;I have two distinct projects but the second one is only to increment a variable at an address shared with the main program.&lt;/P&gt;&lt;P&gt;So I have :&lt;/P&gt;&lt;P&gt;SOFT_1 --&amp;gt; call --&amp;gt; SOFT2&lt;/P&gt;&lt;P&gt;SOFT_2 --&amp;gt; var increment --&amp;gt; SOFT_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when my SOFT_1 calls SOFT_2, my program returns a HardFault with an INVSTATE.&lt;/P&gt;&lt;P&gt;When I use the debugger in step by step with "Instruction Stepping Mode", my program enters well at the good address and increments my variable but on the other hand, if I let the program enter WITHOUT the step by step, then HardFault.&lt;/P&gt;&lt;P&gt;INVSTATE Indicates that the processor has tried to execute an instruction with an invalid Execution Program Status Register value. Ok... but what do I have to do to make sure this is not the case?&lt;/P&gt;&lt;P&gt;I don't know much about ARM so how can I debug this problem?&amp;nbsp;Thank !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 16:17:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598287#M64685</guid>
      <dc:creator>Armageddon</dc:creator>
      <dc:date>2023-02-13T16:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault doesn't appear in debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598517#M64691</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will by supporting your case, I am reviewing your case, but could you elaborate further about your case?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 03:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598517#M64691</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-02-14T03:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault doesn't appear in debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598998#M64695</link>
      <description>&lt;P&gt;I think I have the beginning of a solution but I'm still trying to figure it out for now.&lt;/P&gt;&lt;P&gt;My SOFT_1 calls my SOFT_2 which starts at address 0x10081000. In step by step mode, everything goes well but in normal execution I have a HardFault with the PC register at 0x10081000.&lt;/P&gt;&lt;P&gt;The problem does not appear if I call my program at address 0x10081001. And so I try to understand what is the impact of the thumb mode and the EPSR register.&lt;/P&gt;&lt;P&gt;For example here is what I have at address 0x10081000:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210880iAE343B8B8426529A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot2.png" alt="Screenshot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I scroll up just a little bit, I get this pop:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210881iD2DB06DE7C16AE41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot1.png" alt="Screenshot1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I understand I shall avoid to call the address 0x10081000 and start to 0x10081001 but without explained it yet.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 16:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1598998#M64695</guid>
      <dc:creator>Armageddon</dc:creator>
      <dc:date>2023-02-14T16:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault doesn't appear in debug</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1599211#M64699</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm not very familiar with the ARM Cortex core, but I searched for keywords in the&lt;A href="https://documentation-service.arm.com/static/61efd8352dd99944d05142d1?token=" target="_self"&gt; Arm Cortex-M7 Devices Generic User Guide&lt;/A&gt; and found: Restrictions when using PC or SP. Maybe this is the reason.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Restrictions when using PC or SP.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210929iC50E32C617800303/image-size/large?v=v2&amp;amp;px=999" role="button" title="Restrictions when using PC or SP.png" alt="Restrictions when using PC or SP.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;By the way:&lt;BR /&gt;This problem seems to be related to the use of ARM Cortex. I am afraid that you can get a more accurate answer by contacting ARM's technical support.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 02:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hardfault-doesn-t-appear-in-debug/m-p/1599211#M64699</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-15T02:35:57Z</dc:date>
    </item>
  </channel>
</rss>

