<?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: Nandflash problems on TWRK60F120M in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278553#M8671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have been using CW 10.4, but I will try CW 10.5 and let you know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 17:39:06 GMT</pubDate>
    <dc:creator>meglin</dc:creator>
    <dc:date>2013-10-16T17:39:06Z</dc:date>
    <item>
      <title>Nandflash problems on TWRK60F120M</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278551#M8669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run the nandflash and mfs_nandflash examples on a TWR-K60F120M Rev C board. I able to compile and run the examples, but they don't work as expected (details below). I'm using Codewarrior 10.4, MQX 4.0.2 and the MQX 4.0.2 Flash File System patch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run nandflash, I get the "all bad blocks" problem described here: &lt;A _jive_internal="true" href="https://community.nxp.com/message/329282#329282"&gt;https://community.freescale.com/message/329282&lt;/A&gt;. The output I get is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;MQX NAND Flash Example Application&lt;/P&gt;
&lt;P&gt;==================================&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NAND Flash device nandflash: opened&lt;/P&gt;
&lt;P&gt;Obtaining NAND Flash organization data ...&lt;/P&gt;
&lt;P&gt;ID: 0x0&lt;/P&gt;
&lt;P&gt;Physical page size: 2048 bytes&lt;/P&gt;
&lt;P&gt;Spare area size: 64 bytes&lt;/P&gt;
&lt;P&gt;Block size: 131072 bytes&lt;/P&gt;
&lt;P&gt;Number of blocks: 2048&lt;/P&gt;
&lt;P&gt;Width: 16&lt;/P&gt;
&lt;P&gt;Number of virtual pages: 524288&lt;/P&gt;
&lt;P&gt;Virtual page size: 512 bytes&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Block #0 is bad&lt;/P&gt;
&lt;P&gt;Block #1 is bad&lt;/P&gt;
&lt;P&gt;Block #2 is bad&lt;/P&gt;
&lt;P&gt;Block #3 is bad&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Block #2046 is bad&lt;/P&gt;
&lt;P&gt;Block #2047 is bad&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Size of the write buffer allocated in RAM: 16384 bytes&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Erasing block #0 failed.&lt;/P&gt;
&lt;P&gt;Writing data to 16 virtual pages of block #0 ... Done&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Reading data back from 16 virtual pages of block #0 ... Failed&lt;/P&gt;
&lt;P&gt;Comparing data ... Compare failed&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run mfs_nandflash, I get a similar problem to that described here: &lt;A _jive_internal="true" href="https://community.nxp.com/message/335118#335118"&gt;https://community.freescale.com/message/335118#335118&lt;/A&gt;. Everything seems to work until I try fsopen, which asks me to run repair. Repair claims to work, and then the next fsopen claims to work, but then "format a:" fails. I have tried multiple permutations, but that is as far as I get:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;This is the Flash File System example, type help for list of available commands&lt;BR /&gt;If this is the first time you use the demo, you should run "nanderasechip" command first.&lt;BR /&gt;Shell (build: Oct 14 2013) Copyright (c) 2013 Freescale Semiconductor;&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt;&lt;BR /&gt;shell&amp;gt; nanderasechip&lt;BR /&gt;Erasing entire chip ...&lt;BR /&gt;&lt;BR /&gt;Please use fsopen command to re-open NAND flash device.&lt;BR /&gt;shell&amp;gt; fsopen&lt;BR /&gt;Unable to open nandflash device.&lt;BR /&gt;You must run Repair command&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt; nandrepair&lt;BR /&gt;Repairing... Repair successfully&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt; fsopen&lt;BR /&gt;NAND flash device was opened.&lt;BR /&gt;&lt;BR /&gt;shell&amp;gt; format a: &lt;BR /&gt;Error, file system a: not found&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to implement the solution described here: &lt;A _jive_internal="true" href="https://community.nxp.com/message/335118#335118"&gt;https://community.freescale.com/message/335118#335118&lt;/A&gt;, but the code snippet described doesn't exist in int_gpio.c. I found a similar snippet in bsp_cm.c and inserted line 4 from the above solution, but it didn't change the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 00:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278551#M8669</guid>
      <dc:creator>meglin</dc:creator>
      <dc:date>2013-10-15T00:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nandflash problems on TWRK60F120M</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278552#M8670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try CW 10.4/CW 10.5 GCC compiler ? Recently I used TWR-K60F120M with CW 10.5 GCC compiler and this worked out of the box correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way there is memory leak you better fix as shown here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/351186#351186"&gt;https://community.freescale.com/message/351186#351186&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 10:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278552#M8670</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-10-16T10:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nandflash problems on TWRK60F120M</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278553#M8671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have been using CW 10.4, but I will try CW 10.5 and let you know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 17:39:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nandflash-problems-on-TWRK60F120M/m-p/278553#M8671</guid>
      <dc:creator>meglin</dc:creator>
      <dc:date>2013-10-16T17:39:06Z</dc:date>
    </item>
  </channel>
</rss>

