<?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のトピックFlash driver into HardFault_Handler</title>
    <link>https://community.nxp.com/t5/S32K/Flash-driver-into-HardFault-Handler/m-p/2137388#M51136</link>
    <description>&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;The MCUs I'm using are the S32K312, as well as the S32DS3.6 and RTD500.Then I have a very strange problem now. When I burn the program to 0x00460000, HardFault_Handler() appears in my writes to Flash, but when I burn the program to 0x00580000 it successfully writes to Flash.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_0-1753095749749.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348526iFC4EA586A4231939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_0-1753095749749.png" alt="ChowZJ_0-1753095749749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And of course I put the relevant functions into ram. And also used a function to disable interrupts before writing to flash.&lt;/P&gt;&lt;P&gt;#define DISABLE_GLOBAL_INT() __asm__ __volatile__(" cpsid i")&lt;BR /&gt;#define ENABLE_GLOBAL_INT() __asm__ __volatile__(" cpsie i")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_1-1753095832200.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348531i71CA2F24CCDFBDF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_1-1753095832200.png" alt="ChowZJ_1-1753095832200.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_2-1753095843614.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348532i3B66F56B1B7E83A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_2-1753095843614.png" alt="ChowZJ_2-1753095843614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_3-1753095853561.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348533i069E0746D0EB6501/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_3-1753095853561.png" alt="ChowZJ_3-1753095853561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 11:06:08 GMT</pubDate>
    <dc:creator>ChowZJ</dc:creator>
    <dc:date>2025-07-21T11:06:08Z</dc:date>
    <item>
      <title>Flash driver into HardFault_Handler</title>
      <link>https://community.nxp.com/t5/S32K/Flash-driver-into-HardFault-Handler/m-p/2137388#M51136</link>
      <description>&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;The MCUs I'm using are the S32K312, as well as the S32DS3.6 and RTD500.Then I have a very strange problem now. When I burn the program to 0x00460000, HardFault_Handler() appears in my writes to Flash, but when I burn the program to 0x00580000 it successfully writes to Flash.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_0-1753095749749.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348526iFC4EA586A4231939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_0-1753095749749.png" alt="ChowZJ_0-1753095749749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And of course I put the relevant functions into ram. And also used a function to disable interrupts before writing to flash.&lt;/P&gt;&lt;P&gt;#define DISABLE_GLOBAL_INT() __asm__ __volatile__(" cpsid i")&lt;BR /&gt;#define ENABLE_GLOBAL_INT() __asm__ __volatile__(" cpsie i")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_1-1753095832200.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348531i71CA2F24CCDFBDF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_1-1753095832200.png" alt="ChowZJ_1-1753095832200.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_2-1753095843614.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348532i3B66F56B1B7E83A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_2-1753095843614.png" alt="ChowZJ_2-1753095843614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChowZJ_3-1753095853561.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/348533i069E0746D0EB6501/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChowZJ_3-1753095853561.png" alt="ChowZJ_3-1753095853561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 11:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-driver-into-HardFault-Handler/m-p/2137388#M51136</guid>
      <dc:creator>ChowZJ</dc:creator>
      <dc:date>2025-07-21T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Flash driver into HardFault_Handler</title>
      <link>https://community.nxp.com/t5/S32K/Flash-driver-into-HardFault-Handler/m-p/2138679#M51212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251700"&gt;@ChowZJ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at the recommendations in the thread: &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400HF01-LLD-K312-No-HSE-secure-debug-operation/ta-p/2030149" target="_blank" rel="noopener"&gt;[RTD400HF01 LLD]K312 No HSE secure debug operation&lt;/A&gt;. Let me know if the issue persists afterward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 20:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flash-driver-into-HardFault-Handler/m-p/2138679#M51212</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-07-22T20:20:12Z</dc:date>
    </item>
  </channel>
</rss>

