<?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>S32KのトピックRe: S32K312 Hardfault</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865228#M35323</link>
    <description>&lt;P&gt;The program must have run away, becasue the core accesses an unimplemented memory location.&lt;/P&gt;
&lt;P&gt;You should be able to find the PC address of this precise bus fault instruction on the stack.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 09:06:48 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-05-14T09:06:48Z</dc:date>
    <item>
      <title>S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1864376#M35281</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I'm encountering a hardfault on the NXP s32k312 microcontroller. According to the HFSR register, it appears to be FORCED, and I see an address in the BFAR register. However, I can't figure out what this address points to. (It doesn't seem to point to any location in RAM or Program Flash.) Below are the values generated during the error. I would appreciate your assistance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Stack Frame--&lt;BR /&gt;R0:2&lt;BR /&gt;R1:20416140&lt;BR /&gt;R2:20416330&lt;BR /&gt;R3:0&lt;BR /&gt;R12:40&lt;BR /&gt;LR:41e1d9&lt;BR /&gt;PC:41e1d8&lt;BR /&gt;PSR:61000000&lt;BR /&gt;--Fault Register--&lt;BR /&gt;CFSR:8200&lt;BR /&gt;HFSR:40000000&lt;BR /&gt;DFSR:0&lt;BR /&gt;BFAR:f05c2078&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 10:51:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1864376#M35281</guid>
      <dc:creator>rexoplans</dc:creator>
      <dc:date>2024-05-13T10:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865148#M35318</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221589"&gt;@rexoplans&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;BFAR is valid only if CSFR[BFARVALID] = 1.&lt;/P&gt;
&lt;P&gt;Can you share the value in CSFR?&lt;/P&gt;
&lt;P&gt;Refer to these documents:&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"&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"&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;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259&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>Tue, 14 May 2024 08:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865148#M35318</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-14T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865155#M35319</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp; My CFSR value is 8200, I'll review the documents. By the way, I'm also using FreeRTOS&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865155#M35319</guid>
      <dc:creator>rexoplans</dc:creator>
      <dc:date>2024-05-14T08:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865228#M35323</link>
      <description>&lt;P&gt;The program must have run away, becasue the core accesses an unimplemented memory location.&lt;/P&gt;
&lt;P&gt;You should be able to find the PC address of this precise bus fault instruction on the stack.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 09:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1865228#M35323</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-14T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866211#M35404</link>
      <description>But I cant, PC value is invalid. My PC value is 41e1d8 but MCU end addres is 0x40403c( HSE host end addr on flash).</description>
      <pubDate>Wed, 15 May 2024 10:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866211#M35404</guid>
      <dc:creator>rexoplans</dc:creator>
      <dc:date>2024-05-15T10:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866943#M35448</link>
      <description>&lt;P&gt;If you halt the core in the HardFault_Handler(), find the SP value in the core registers.&lt;/P&gt;
&lt;P&gt;Then, open the memory view at this SP address and read the stacked context.&lt;/P&gt;
&lt;P&gt;You should find the PC address of the fault instruction there&lt;/P&gt;
&lt;P&gt;It is explained in the documents I linked.&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>Thu, 16 May 2024 08:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866943#M35448</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-16T08:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 Hardfault</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866945#M35449</link>
      <description>Thank you for the information, but I am aware of this. I suspected a stack overflow and I found it. While searching for it, I utilized a feature of gdb. Thank you for your help</description>
      <pubDate>Thu, 16 May 2024 08:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-Hardfault/m-p/1866945#M35449</guid>
      <dc:creator>rexoplans</dc:creator>
      <dc:date>2024-05-16T08:14:27Z</dc:date>
    </item>
  </channel>
</rss>

