<?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 Microcontrollers中的主题 Re: K20 FlexNVM with Flashx</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201621#M2944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not delved into this as deep as I wanted, but I believe you should use the flashx driver for the data flash.&lt;/P&gt;&lt;P&gt;But after skimming through the BSP code I noticed that the FlexRam and Flashx drivers are hardcoded to its corresponding block of flash. In other words the Flashx works only for P-Flash and the FlexRam works only in the D-Flash.&lt;/P&gt;&lt;P&gt;But the device supports writing to D-flash as in P-Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check in the early release of MQX 4.0, perhaps there are a few changes. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 22:13:50 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2012-12-11T22:13:50Z</dc:date>
    <item>
      <title>K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201618#M2941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can Flashx driver be use to write to the "Data Flash" of the FlexNVM? The FlashNVM example show the example of writing to the EEPROM partition. How do I change it so it write to the "Data Flash"? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 22:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201618#M2941</guid>
      <dc:creator>hn</dc:creator>
      <dc:date>2012-12-07T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201619#M2942</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;Which FlashX driver are you refering to? &lt;/P&gt;&lt;P&gt;To the MQX driver? or an specific example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 22:40:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201619#M2942</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2012-12-10T22:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201620#M2943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's an example call "flexnvm" under Freescale\Freescale MQX 3.8\mqx\examples\. That example writes/read to the "FlexEEPROM" partition using Flashx driver. How do I get it to read/write to "Data Flash" partition of the FlexNVM? Any tips would be appreciated. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 22:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201620#M2943</guid>
      <dc:creator>hn</dc:creator>
      <dc:date>2012-12-10T22:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201621#M2944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not delved into this as deep as I wanted, but I believe you should use the flashx driver for the data flash.&lt;/P&gt;&lt;P&gt;But after skimming through the BSP code I noticed that the FlexRam and Flashx drivers are hardcoded to its corresponding block of flash. In other words the Flashx works only for P-Flash and the FlexRam works only in the D-Flash.&lt;/P&gt;&lt;P&gt;But the device supports writing to D-flash as in P-Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check in the early release of MQX 4.0, perhaps there are a few changes. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 22:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201621#M2944</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2012-12-11T22:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201622#M2945</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;I just checked the early release and unfortunately it seems that the flashx driver can only be used in the P-Flash.&lt;/P&gt;&lt;P&gt;This is a software limitation, because you can treat the remaining D-Flash as P-Flash and write, read to it using flash routines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could either try to modify the flashx driver or migrate your own driver to MQX. &lt;/P&gt;&lt;P&gt;You can find examples in the C90TFS flash drivers where the D-Flash region is treated as P-Flash.&lt;/P&gt;&lt;P&gt;You can try to migrate this driver to your application.&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fpsp=1&amp;amp;WT_TYPE=Device%20Drivers&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&amp;amp;sr=24" title="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fpsp=1&amp;amp;WT_TYPE=Device%20Drivers&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&amp;amp;sr=24"&gt;http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fpsp=1&amp;amp;WT_TYPE=Device%20Drivers&amp;amp;WT_VENDOR=FREESC…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201622#M2945</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2012-12-13T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201623#M2946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201623#M2946</guid>
      <dc:creator>hn</dc:creator>
      <dc:date>2012-12-13T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201624#M2947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi Huan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The FTFL write and erase sector functions do not translate the FlexNVM 32-bit address to 24-bit address.&amp;nbsp; To access the FlexNVM/bank1 flash bit-23 of the write_addr used in the command_array[1] needs to be set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I added simple address check and translation as shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;From the ftfl_flash_erase_sector()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; write_addr = (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #005032; font-size: 10pt;"&gt;_mem_size&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;) from_ptr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #3f7f5f; font-size: 10pt;"&gt;//DES 1=test,0=default code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;(write_addr &amp;amp; 0x10000000)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #3f7f5f; font-size: 10pt;"&gt;//DES Hack that looks at address and if in the 0x10000000 range we assume access is for FlexNVM/bank1 flash block and we set bit 23 to gain access&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write_addr |= 0x00800000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;From the ftfl_flash_write_sector()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; write_addr = (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #005032; font-size: 10pt;"&gt;_mem_size&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;) to_ptr;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #3f7f5f; font-size: 10pt;"&gt;//DES??? should this have check of dev_ptr-&amp;gt;FLAGS to translate address to NVM/bank1 by setting bit 23?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #3f7f5f; font-size: 10pt;"&gt;//DES 1=test,0=default code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;(write_addr &amp;amp; 0x10000000)&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;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #3f7f5f; font-size: 10pt;"&gt;//DES Hack that looks at address and if in the 0x10000000 range we assume access is for FlexNVM/bank1 flash block and we set bit 23 to gain access&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; write_addr |= 0x00800000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;From my comments above I was thinking that a “better” solution would be to use the dev_ptr-&amp;gt;FLAGS but your expertise probably can do better than that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So know the attached is ZIP with all files I touched and project working for both program and data flash space.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Terminal Output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx:bank0 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x40000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Bytes are blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):flashx:bank0 test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and then retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX NVM Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx_nvm:bank1 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x8000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Bytes are blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):flashx_nvm:bank1 test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and then retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx:bank0 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x40000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;String found: flashx:bank0 test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):MQX Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and then retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX NVM Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx_nvm:bank1 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x8000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;String found: flashx_nvm:bank1 test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):MQX NVM Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and rthen retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx:bank0 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x40000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;String found: MQX Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):Good Bye bank0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and then retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;MQX NVM Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash file flashx_nvm:bank1 opened&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Size of the flash file: 0x8000 Bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash sector cache enabled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Reading last 32 Bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;String found: MQX NVM Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Type a string to be written to the end of file (32 chars max.):Good Bye bank1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Data written to the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Now you can power down and power up your device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;and then retry the test to see if the string was written correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Flash example finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I've forwarded my results to our MQX Development team for improving this solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;David &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;PS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;This was done with MQX4.0 (I have early release).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201624#M2947</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-12-13T22:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201625#M2948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked the code you sent. Awesome !!&lt;/P&gt;&lt;P&gt;I have one question, I hope you can clarify this. &lt;/P&gt;&lt;P&gt;According to the code, it seems that you are opening the flexnvm&amp;nbsp; block 1 using the entire D-Flash right?&lt;/P&gt;&lt;P&gt;What if I have a partition for EEE. As far as I know when you open a file using the flashx driver. This is open at the bottom of the block you are using. And if you have a EEE partition, this would not be a conflict between both drivers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201625#M2948</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2012-12-13T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: K20 FlexNVM with Flashx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201626#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;You are absolutely correct.&amp;nbsp; The assumption is the entire FlexNVM flash is being accessed as data flash and not using any EEE capability.&lt;/P&gt;&lt;P&gt;The other senarios I have not considered.&amp;nbsp; Hopefully I can have more free time to add more capability or someone else might beat me to the solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K20-FlexNVM-with-Flashx/m-p/201626#M2949</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-12-13T22:38:09Z</dc:date>
    </item>
  </channel>
</rss>

