<?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: Using Micron MT29F8G08ABABWP with FFS</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691470#M17474</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;Please try changing the below macro in the file twrk21f120m.h&lt;/P&gt;&lt;P&gt;#define BSP_VIRTUAL_PAGE_SIZE&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; (512)&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_VIRTUAL_PAGE_SIZE&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; (2048) //(512)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This file is located at the path: C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\twrk21f120m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Soledad&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, 19 Jul 2017 15:41:38 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2017-07-19T15:41:38Z</dc:date>
    <item>
      <title>Using Micron MT29F8G08ABABWP with FFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691469#M17473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Currently I’m using I’m are using MQX 4.2 and a K20FX512VLQ12 connected to a Spansion S34ML08G2 NAND flash memory chip. Everything is works well using the Spansion flash.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;Our board house would like us to replace the Spansion flash with a Micron MT29F8G08ABABWP because of the long lead time for the Spansion flash.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I’ve placed the Micron flash chip on one of our boards to test, update init_nandflash.c with the parameters from the Micron data sheet:&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;#define MT29F8G08_PHYSICAL_PAGE_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;#define MT29F8G08_SPARE_AREA_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 224&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;#define MT29F8G08_BLOCK_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 524288 /* 512kB */&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;#define MT29F8G08_NUM_BLOCKS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;#define MT29F8G08_WIDTH&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; 8&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;NANDFLASH_INFO_STRUCT _MT29F8G08_organization_8bit[] = {&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp; MT29F8G08_PHYSICAL_PAGE_SIZE,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp; MT29F8G08_SPARE_AREA_SIZE,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp; MT29F8G08_BLOCK_SIZE,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp; MT29F8G08_NUM_BLOCKS,&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp; MT29F8G08_WIDTH&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;};&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I also updated the assert(entry_count &amp;lt; 257) in &lt;SPAN style="color: black;"&gt;PageOrderMap::init to allow entry count of 1024, this is the count passed into the function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;When I try to open the flash device it never returns with a device handle. Stepping through the code,&amp;nbsp;the call to Mapper::scanAndBuildPhyMap never returns.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Has anyone used the Micron flash, I'm not sure what I've missed setting up the Micron MT29F8G08ABABWP for use with MQX and FFS?&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Thanks for your time, any help is appreciated.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;Update:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I'm marking Soledad's answer as correct.&amp;nbsp; After updating to &lt;A _jive_internal="true" href="https://community.nxp.com/thread/456964"&gt;uint16 entries&lt;/A&gt;&amp;nbsp;correctly in PageOrderMap, changing BSP_VIRTUAL_PAGE_SIZE to 2048 worked.&amp;nbsp; The device handle is now returned and MFS installs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691469#M17473</guid>
      <dc:creator>randalljordan</dc:creator>
      <dc:date>2017-07-10T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Micron MT29F8G08ABABWP with FFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691470#M17474</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;Please try changing the below macro in the file twrk21f120m.h&lt;/P&gt;&lt;P&gt;#define BSP_VIRTUAL_PAGE_SIZE&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; (512)&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define BSP_VIRTUAL_PAGE_SIZE&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; (2048) //(512)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This file is located at the path: C:\Freescale\Freescale_MQX_4_2\mqx\source\bsp\twrk21f120m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Soledad&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, 19 Jul 2017 15:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691470#M17474</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-07-19T15:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Micron MT29F8G08ABABWP with FFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691471#M17475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; Changing the value did not make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did find was that the assertion (EntryCount &amp;lt; 256)&lt;/P&gt;&lt;P&gt;in PageOrderMap::init(&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;unsigned&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; entryCount, &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;unsigned&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; maxEntryValue&lt;/SPAN&gt;) in page_order_map.cpp is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entry count for the MT29F8G08 is 1024.&amp;nbsp; I increased the count to 1025 and now a device handle is returned and MFS can be installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current problem is that each time power is cycled none of the files created using MFS&amp;nbsp;can be found.&amp;nbsp;I can create files and write to them.&amp;nbsp; The proper byte count is returned after each write, I'm not sure what setting I've missed that would allow the files to be found after a power cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691471#M17475</guid>
      <dc:creator>randalljordan</dc:creator>
      <dc:date>2017-07-20T10:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Micron MT29F8G08ABABWP with FFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691472#M17476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have experienced a situation like yours. &amp;nbsp;If you do not gracefully close the wear leveling layer the system does not save fat table updates and thus when your system reboots it has no knowledge of the file system changes that were made. &amp;nbsp;The only way around this issue that I am aware of is to force the wear leveling system to close and then reopen after modifications to the fat tables. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Placing the following after any modifications to the fat table:&lt;/P&gt;&lt;P&gt;mfs_nandflash_wl_close(); // close all to force a flush and save of fat table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course to continue using your nand you will have to follow this by reopening:&lt;/P&gt;&lt;P&gt;mfs_nandflash_wl_open();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 17:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691472#M17476</guid>
      <dc:creator>thomasbattko</dc:creator>
      <dc:date>2017-08-03T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Micron MT29F8G08ABABWP with FFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691473#M17477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the change but it did not make a difference. I’ve narrowed down the issue to NANDFLASHERR_ECC_FAILED in nfc_wl_cpp when trying to open MFS. I’m sure there is a setting I’m missing, I just don’t know which setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help I appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 12:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Using-Micron-MT29F8G08ABABWP-with-FFS/m-p/691473#M17477</guid>
      <dc:creator>randalljordan</dc:creator>
      <dc:date>2017-08-04T12:06:24Z</dc:date>
    </item>
  </channel>
</rss>

