<?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>Kinetis Software Development Kit中的主题 Re: Read / Write the internal flash memory</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372985#M784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The internal flash can be read like memory access directly, but need a driver and write sequency for write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, define a place in flash to store the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* put the data to the flash */&lt;/P&gt;&lt;P&gt;#pragma location = 0x0001f800&lt;/P&gt;&lt;P&gt;const XXX_configs saved_configs;/* this variable is stored in flash */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this parameter can be read directly from flash address 0x0001f800.&lt;/P&gt;&lt;P&gt;Please note that it is better to align the address to flash sector (normally 2K or 4K).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, use flash write driver to write your parameters to saved_configs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FlashEraseSector(&amp;amp;saved_configs, ...);&lt;/P&gt;&lt;P&gt;FlashProgram(&amp;amp;saved_configs, ...);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to flash_demo under demo for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 06:11:26 GMT</pubDate>
    <dc:creator>terry_lv</dc:creator>
    <dc:date>2014-11-27T06:11:26Z</dc:date>
    <item>
      <title>Read / Write the internal flash memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372983#M782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using FRDM-K64F for my project. I need to write / read the internal flash memory to store some parameters at runtime. My development environment is &lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt; &lt;SPAN style="font-size: 10pt;"&gt;KDS_1.1.1 and MQX_KSDK_1.0.0. I tried the demo project in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;C:\Freescale\MQX_KSDK_1.0.0\demos\flash_demo. It displayed the following information: No &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;D_Flash (FlexNVM) and Enhanced EEPROM (EEE) on this device. In this situation, can I read / write the internal flash memory?&amp;nbsp; I need to config the flash? Are there better solution to read / write the internal flash memory? Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 20:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372983#M782</guid>
      <dc:creator>dongshengwang</dc:creator>
      <dc:date>2014-11-26T20:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read / Write the internal flash memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372984#M783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the internal data flash for storing parameters in - FlexNVM is not necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the parameter system from the uTasker project as reference: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF" title="http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF"&gt;http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF&lt;/A&gt;,[chapters 7 and 8] which is used on the FRDM-K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 21:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372984#M783</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-11-26T21:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read / Write the internal flash memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372985#M784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The internal flash can be read like memory access directly, but need a driver and write sequency for write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, define a place in flash to store the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* put the data to the flash */&lt;/P&gt;&lt;P&gt;#pragma location = 0x0001f800&lt;/P&gt;&lt;P&gt;const XXX_configs saved_configs;/* this variable is stored in flash */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this parameter can be read directly from flash address 0x0001f800.&lt;/P&gt;&lt;P&gt;Please note that it is better to align the address to flash sector (normally 2K or 4K).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, use flash write driver to write your parameters to saved_configs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FlashEraseSector(&amp;amp;saved_configs, ...);&lt;/P&gt;&lt;P&gt;FlashProgram(&amp;amp;saved_configs, ...);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to flash_demo under demo for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 06:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Read-Write-the-internal-flash-memory/m-p/372985#M784</guid>
      <dc:creator>terry_lv</dc:creator>
      <dc:date>2014-11-27T06:11:26Z</dc:date>
    </item>
  </channel>
</rss>

