<?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>MQX Software SolutionsのトピックRe: K60DN512 FLEX NVM as EEPROM</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668862#M17329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are looking for a way to preserve the memory while you program a new image with a flash programmer &lt;A href="https://mcuoneclipse.com/2014/07/13/preserving-memory-ranges-with-eclipse-and-pe-gdb-server/"&gt;this article&lt;/A&gt; on the &lt;EM&gt;MCU on Eclipse&lt;/EM&gt; website is great. If you don't need to debug I think you can use the SREC format to preserve a section of memory. If you are using a boot loader then the boot loader will have to read the flash, save the data in RAM, then re-program it once the new image is programmed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 02:46:35 GMT</pubDate>
    <dc:creator>coryf</dc:creator>
    <dc:date>2017-05-16T02:46:35Z</dc:date>
    <item>
      <title>K60DN512 FLEX NVM as EEPROM</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668860#M17327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi All,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am using a Freescale K60DN512 and MQX4.1 .&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I need to store some data on NVM memory. I followed the example flash_demo.c and it works fine.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The problem is on the&amp;nbsp;re-flash the program (for example for an update of FW) which erase also my previous data stored into NVM memory.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Is there a way to preserve my NVM data after a reload of FLASH memory or I have to find another way (extern EEPROM bye I2C bus for example)? &amp;nbsp;Thanks all,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 05:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668860#M17327</guid>
      <dc:creator>stefano_conegia</dc:creator>
      <dc:date>2017-05-05T05:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: K60DN512 FLEX NVM as EEPROM</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668861#M17328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="295950" data-username="stefano.conegian" href="https://community.nxp.com/people/stefano.conegian"&gt;stefano conegian&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the developer does not take your requirement into account in this demo.&lt;/P&gt;&lt;P&gt;The example demonstrates basic operation we can do with flash memory including writing string or characters into the memory and reading it back. The memory characteristic, reading and writing statues as well as the data are displayed over output terminal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This demo write the string to the flash with write function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; len = write(flash_file, buffer, STRING_SIZE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you need to keep previous data,&amp;nbsp; I think you can read data from flash and store it to buffer, and add new data to buffer, and then write the whole buffer to flash. It will be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 08:08:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668861#M17328</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-05-15T08:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: K60DN512 FLEX NVM as EEPROM</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668862#M17329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are looking for a way to preserve the memory while you program a new image with a flash programmer &lt;A href="https://mcuoneclipse.com/2014/07/13/preserving-memory-ranges-with-eclipse-and-pe-gdb-server/"&gt;this article&lt;/A&gt; on the &lt;EM&gt;MCU on Eclipse&lt;/EM&gt; website is great. If you don't need to debug I think you can use the SREC format to preserve a section of memory. If you are using a boot loader then the boot loader will have to read the flash, save the data in RAM, then re-program it once the new image is programmed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 02:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/K60DN512-FLEX-NVM-as-EEPROM/m-p/668862#M17329</guid>
      <dc:creator>coryf</dc:creator>
      <dc:date>2017-05-16T02:46:35Z</dc:date>
    </item>
  </channel>
</rss>

