<?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: Error with flash memory, PE_DEBUGHALT (); in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583653#M34487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanks for trying to help me.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I tested the method you passed me but got no result, still not running because of this interruption. my main basically consists of the following lines : &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" style="padding-left: 15px; padding-right: 10px;" valign="top" width="100%"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;MyFLASH_Ptr = FLASH1_Init(NULL);&lt;/LI&gt;&lt;LI&gt;Error = FLASH1_Write(MyFLASH_Ptr, Data, MY_FLASH_LOCATION, sizeof(Data));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;while (!DataWrittenFlg) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;FLASH1_Main(MyFLASH_Ptr);&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;DataWrittenFlg = FALSE;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if (FLASH1_GetOperationStatus(MyFLASH_Ptr) == LDD_FLASH_FAILED)&lt;/LI&gt;&lt;LI&gt;{&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Error = FLASH1_Read(MyFLASH_Ptr, MY_FLASH_LOCATION, Buffer, sizeof(Buffer));&lt;/LI&gt;&lt;LI&gt;do {&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH1_Main(MyFLASH_Ptr);&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpStatus = FLASH1_GetOperationStatus(MyFLASH_Ptr);&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if (OpStatus == LDD_FLASH_FAILED)&lt;/LI&gt;&lt;LI&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&amp;nbsp; I believe that the error is &lt;SPAN style="background-color: #ffffff;"&gt;FLASH1_Main(MyFLASH_Ptr);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 14:36:22 GMT</pubDate>
    <dc:creator>danilolima</dc:creator>
    <dc:date>2016-09-02T14:36:22Z</dc:date>
    <item>
      <title>Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583650#M34484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;I was conducting tests with the recording in flash memory using the expert processor , and the program stopped working. I had an earlier version that was running normally but even she was not . The error is as follows: When clicked to start the program he showed PE_DEBUGHALT (); within the vector and let not run the program . I'm using kds with frdm k64f . If anyone knows of a solution I will be very grateful.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583650#M34484</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-01T15:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583651#M34485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danilo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check these two points:&lt;/P&gt;&lt;P&gt;1. When do the flash operation, please disable the global interrupt at first, after the flash operation is finished, then enable the interrupt again.&lt;/P&gt;&lt;P&gt;2. Put the flash command operation code in the RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 05:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583651#M34485</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-09-02T05:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583652#M34486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danilo,&lt;/P&gt;&lt;P&gt;do you know which interrupt is causing this? I recommend that you set one interrupt handler for each interrupt vector, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/" title="https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/"&gt;https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 05:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583652#M34486</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-09-02T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583653#M34487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Thanks for trying to help me.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I tested the method you passed me but got no result, still not running because of this interruption. my main basically consists of the following lines : &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" style="padding-left: 15px; padding-right: 10px;" valign="top" width="100%"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;MyFLASH_Ptr = FLASH1_Init(NULL);&lt;/LI&gt;&lt;LI&gt;Error = FLASH1_Write(MyFLASH_Ptr, Data, MY_FLASH_LOCATION, sizeof(Data));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;while (!DataWrittenFlg) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;FLASH1_Main(MyFLASH_Ptr);&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;DataWrittenFlg = FALSE;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if (FLASH1_GetOperationStatus(MyFLASH_Ptr) == LDD_FLASH_FAILED)&lt;/LI&gt;&lt;LI&gt;{&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Error = FLASH1_Read(MyFLASH_Ptr, MY_FLASH_LOCATION, Buffer, sizeof(Buffer));&lt;/LI&gt;&lt;LI&gt;do {&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH1_Main(MyFLASH_Ptr);&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpStatus = FLASH1_GetOperationStatus(MyFLASH_Ptr);&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;} while (!((OpStatus == LDD_FLASH_IDLE) | (OpStatus == LDD_FLASH_FAILED)));&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if (OpStatus == LDD_FLASH_FAILED)&lt;/LI&gt;&lt;LI&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;}&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&amp;nbsp; I believe that the error is &lt;SPAN style="background-color: #ffffff;"&gt;FLASH1_Main(MyFLASH_Ptr);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:36:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583653#M34487</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-02T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583654#M34488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Thanks for trying to help me . I'm dificuldado to disable interrupts global can you help me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:49:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583654#M34488</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-02T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583655#M34489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danilo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can upload your test project, I would like to help you to check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583655#M34489</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-09-05T08:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583656#M34490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;This is my program:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 11:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583656#M34490</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-05T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583657#M34491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Many thanks to all who tried to help me , I ended up finding the solution alone. Only changed the memory storage location and has solved .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:53:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583657#M34491</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-05T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583658#M34492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danilo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I run your code on my side, it works ok:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5237i5527EE5037C9F817/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think your problem is caused by the 0X1F000 didn't do flash erase before, and 0X1F000 already have data.&lt;/P&gt;&lt;P&gt;&amp;nbsp; To the flash, when you want to write the data, you should make sure that area is erased, so normally, customer need to do the sector erase before do the flash write.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can do a sector erase before :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = FLASH1_Write(MyFLASH_Ptr, Data, MY_FLASH_LOCATION, sizeof(Data));&amp;nbsp;&amp;nbsp; //Start writing to the flash memory&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your code can work on my side, because I do the mass erase before download the data, so the 0X1F000 is 0xff on my side before do flash write operation.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 02:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583658#M34492</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-09-06T02:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583659#M34493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jingjing Zhou.&amp;nbsp;It's hard , worked 3 times, but when I run the fourth already gave no further . I deleted everything that had added and left as it was working yesterday and continued giving error . Even adding what you told me, the damn error persists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 11:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583659#M34493</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-06T11:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583660#M34494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danilo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I find you didn't add :&lt;/P&gt;&lt;P&gt;DataWrittenFlg = TRUE;&lt;/P&gt;&lt;P&gt;in FLASH1_OnOperationComplete function.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now I modified your code, and do the erase, write, read operation in the for(;;).&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have test the modified project on my FRDM-K64 board, and it works ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can try my modified project on your side, I have attached it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have problem, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 02:21:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583660#M34494</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-09-07T02:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error with flash memory, PE_DEBUGHALT ();</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583661#M34495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Dear Kerry Zhou , thanks for the help , everything is working as desired now .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-with-flash-memory-PE-DEBUGHALT/m-p/583661#M34495</guid>
      <dc:creator>danilolima</dc:creator>
      <dc:date>2016-09-08T14:24:02Z</dc:date>
    </item>
  </channel>
</rss>

