<?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 erasing Flash sector 3 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741642#M29901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="309600" data-username="patrickhudson" href="https://community.nxp.com/people/patrickhudson" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Patrick Hudson&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px;"&gt;the opportunity to serve you. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you can share a compile-able demo, then I can replicate the phenomenon on my site.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 02:32:52 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-04-20T02:32:52Z</dc:date>
    <item>
      <title>Hard Fault when erasing Flash sector 3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741641#M29900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're working on an IAP solution.&amp;nbsp; The iap function is running in ram (placed via RAMFUNC macro).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erasing of flash sectors 0,1, 2&amp;nbsp; and 4 through 15 are successful (via FLASHIAP_EraseSector()) but if we attempt to erase sector 3 we experience a Hard Fault.&amp;nbsp; The image size is ~ 260k bytes.&amp;nbsp; We believe we have all application level interrupts disabled (can, usb etc).&amp;nbsp; The Interrupt Vector Table has been copied to ram and the VTOR is pointing at the table in ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas or experience with a similar issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPC54608 MPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 21:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741641#M29900</guid>
      <dc:creator>patrickhudson</dc:creator>
      <dc:date>2018-04-17T21:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault when erasing Flash sector 3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741642#M29901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="309600" data-username="patrickhudson" href="https://community.nxp.com/people/patrickhudson" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Patrick Hudson&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px;"&gt;the opportunity to serve you. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you can share a compile-able demo, then I can replicate the phenomenon on my site.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 02:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741642#M29901</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-04-20T02:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Fault when erasing Flash sector 3</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741643#M29902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I determined the issue.&amp;nbsp; We had placed the FLASHIAP_* functions in ram and needed to set the THUMB bit in the function call to iap_entry (which was also in ram).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;((IAP_ENTRY_T)(FSL_FEATURE_SYSCON_IAP_ENTRY_LOCATION | 1))(command, result);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea why the&amp;nbsp;HARD_FAULT was only being seen when erasing sector # 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 19:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-Fault-when-erasing-Flash-sector-3/m-p/741643#M29902</guid>
      <dc:creator>patrickhudson</dc:creator>
      <dc:date>2018-04-20T19:55:00Z</dc:date>
    </item>
  </channel>
</rss>

