<?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: MK20 EEPROM failed to write in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611555#M36196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I logged into my email and follow the link and backed to here again, I can see the attachment, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2017 18:19:39 GMT</pubDate>
    <dc:creator>tonyw</dc:creator>
    <dc:date>2017-03-29T18:19:39Z</dc:date>
    <item>
      <title>MK20 EEPROM failed to write</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611552#M36193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the MK20DX256VLL10, bare metal with KDS 3.2. I am using the FLASH_LDD from PEx. The EEPROM size is set to 4096 byte. The partition code is 0x4 and the EEPROM size code is 0x22. I am using the following code to configure the partition at the beginning. it seems working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cpu_SetFlexNVMPartition();&lt;BR /&gt;&amp;nbsp; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt;&amp;nbsp; PE_low_level_init();&lt;BR /&gt;&amp;nbsp; /*** End of Processor Expert internal initialization.&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;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Cpu_GetFlexNVMPartitionCode() == FLEX_NVM_REQUESTED_PARTITION_CODE){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; SendDataToComputer("Successfully set Partition.\r\n ");&lt;BR /&gt;&amp;nbsp; }else{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; SendDataToComputer("Failed set Partition.\r\n ");&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;The write function was generated by PEx:&lt;/P&gt;&lt;P&gt;FLASH1_Write(bitFLASH1Ptr, buf, FLASH_EEPROM_LOCATION, 2048);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can write the data into EEPROM once and ONLY ONCE after "Mass erase on connect" is enabled and download the code into target board.&lt;/P&gt;&lt;P&gt;After that even I used the same code, the write function will be returned with FAIL code.&lt;/P&gt;&lt;P&gt;What do I need to do in order to successfully write data to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 15:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611552#M36193</guid>
      <dc:creator>tonyw</dc:creator>
      <dc:date>2017-03-23T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: MK20 EEPROM failed to write</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611553#M36194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony W,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The partition code just can be do once after mass erased, after the partition is finished, the next power on, you won't do the partition again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Besides, Please don't enable the interrupt when you do the flash operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I attached a bare mental code for the eeprom operation, you can refer to it, please modify the eeprom_size and dflash_size to the data whch you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then add the bare mental function directly to your project, and test it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you still have question, just let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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, 27 Mar 2017 03:25:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611553#M36194</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-27T03:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: MK20 EEPROM failed to write</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611554#M36195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;I am not able to find the code you have attached.&lt;/P&gt;&lt;P&gt;How can I find the code you have attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611554#M36195</guid>
      <dc:creator>tonyw</dc:creator>
      <dc:date>2017-03-29T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: MK20 EEPROM failed to write</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611555#M36196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I logged into my email and follow the link and backed to here again, I can see the attachment, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony W&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611555#M36196</guid>
      <dc:creator>tonyw</dc:creator>
      <dc:date>2017-03-29T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: MK20 EEPROM failed to write</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611556#M36197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony W,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, the attachment only can be seen after you log in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check my code on your side, it is very simple and useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any question about it, just let me know!&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;Kerry&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>Thu, 30 Mar 2017 02:16:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK20-EEPROM-failed-to-write/m-p/611556#M36197</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-30T02:16:40Z</dc:date>
    </item>
  </channel>
</rss>

