<?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: MPC5744P, C55 Flash Driver,  Flash Erase Error in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1679415#M23890</link>
    <description>&lt;P&gt;How to make sure &lt;SPAN&gt;the interrupt handler does not touch that partition?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 08:27:42 GMT</pubDate>
    <dc:creator>ChenBowen</dc:creator>
    <dc:date>2023-06-30T08:27:42Z</dc:date>
    <item>
      <title>MPC5744P, C55 Flash Driver,  Flash Erase Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1678183#M23882</link>
      <description>&lt;P&gt;Dear expert:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am doing MPC5744P Bootloader Project. I arrange&amp;nbsp;low flash memory block2 , low flash memory block3&amp;nbsp; and high flash memory block 0 for bootloader . And the other flash memory blocks,starting from high flash memory block 1,&amp;nbsp; for application.&amp;nbsp; So , all the other high flash memory blocks need to be erased&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; However,&amp;nbsp;&amp;nbsp;when executing the Flash erase function, the kernel encounters an exception and the program stops.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In code,&amp;nbsp;I set&amp;nbsp; highBlockSelect = 0b111110;&amp;nbsp; &amp;nbsp; If I modify it,&amp;nbsp;&amp;nbsp;highBlockSelect = 0b000000,&amp;nbsp; only erase the 256K flash blocks,&amp;nbsp; no problem occurs.&amp;nbsp; &amp;nbsp; How to explain this phenomenon?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 01:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1678183#M23882</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-06-29T01:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P, C55 Flash Driver,  Flash Erase Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1678886#M23886</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195267"&gt;@ChenBowen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Table 5-4. in the reference manual. Here is beginning of the table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1688059590197.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230099iCBC154D5DA054F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1688059590197.png" alt="lukaszadrapa_0-1688059590197.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Each flash block belongs to certain RWW (Read While Write) partition.&lt;/P&gt;
&lt;DIV id="tinyMceEditorlukaszadrapa_6" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1688059939018.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/230102i83EECFCCDB5020EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1688059939018.png" alt="lukaszadrapa_0-1688059939018.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or in other words, when program or erase operation is running on a partition, the code must run from another partition or from RAM. &lt;/P&gt;
&lt;P&gt;If the code already runs from another partition or from RAM, it may be caused by interrupts when&amp;nbsp; interrupt handler accesses that partition. In this case, it's necessary to either disable interrupts or make sure that it does not touch that partition.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;DIV id="tinyMceEditorlukaszadrapa_7" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 17:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1678886#M23886</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-06-29T17:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P, C55 Flash Driver,  Flash Erase Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1679409#M23889</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you for your reply ! The code runs from another partition , but the flash erase function is called in interrupts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 08:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1679409#M23889</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-06-30T08:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P, C55 Flash Driver,  Flash Erase Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1679415#M23890</link>
      <description>&lt;P&gt;How to make sure &lt;SPAN&gt;the interrupt handler does not touch that partition?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 08:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1679415#M23890</guid>
      <dc:creator>ChenBowen</dc:creator>
      <dc:date>2023-06-30T08:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P, C55 Flash Driver,  Flash Erase Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1680302#M23893</link>
      <description>&lt;P&gt;The interrupt handler needs to be placed to different partition and it should not call a function / it should not read a data which are placed in partition which is currently being modified by flash operation.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 08:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-C55-Flash-Driver-Flash-Erase-Error/m-p/1680302#M23893</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-07-03T08:19:23Z</dc:date>
    </item>
  </channel>
</rss>

