<?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>ColdFire/68K Microcontrollers and Processorsのトピックu-boot on M5329evb</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154162#M4277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some time ago I had NAND problems on u-boot over my M5329 freescale EVB. We solve it using the last u-boot (U-Boot 2008.10) compiling it with an M5329BFEE_config.&lt;BR /&gt;&lt;BR /&gt;I though everything was going well, but some problems have appeared now. When I try to write on NAND device blocks of 512 bytes (the nand is and 16KiB pages of 512 bytes) everything seems OK, any error message.&lt;BR /&gt;&lt;BR /&gt;But when I try to read the block, an error (-74) occurs in any block except the first one I've written on. If I take a look on the information written on every page I can see that ONLY the first page I wrote is written correctly. The other pages have wrong information inside them.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter if I write every page separately or in bigger blocks. U-boot only write correctly the first page that I attempt to write. Until I erase the whole memory.&lt;BR /&gt;&lt;BR /&gt;Anybody knows anything about it? Could be my Flash memory chip be broken? I don't thing so, because I can manage it correctly from ucLinux.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2009 17:45:06 GMT</pubDate>
    <dc:creator>cfernandez</dc:creator>
    <dc:date>2009-02-18T17:45:06Z</dc:date>
    <item>
      <title>u-boot on M5329evb</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154162#M4277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some time ago I had NAND problems on u-boot over my M5329 freescale EVB. We solve it using the last u-boot (U-Boot 2008.10) compiling it with an M5329BFEE_config.&lt;BR /&gt;&lt;BR /&gt;I though everything was going well, but some problems have appeared now. When I try to write on NAND device blocks of 512 bytes (the nand is and 16KiB pages of 512 bytes) everything seems OK, any error message.&lt;BR /&gt;&lt;BR /&gt;But when I try to read the block, an error (-74) occurs in any block except the first one I've written on. If I take a look on the information written on every page I can see that ONLY the first page I wrote is written correctly. The other pages have wrong information inside them.&lt;BR /&gt;&lt;BR /&gt;It doesn't matter if I write every page separately or in bigger blocks. U-boot only write correctly the first page that I attempt to write. Until I erase the whole memory.&lt;BR /&gt;&lt;BR /&gt;Anybody knows anything about it? Could be my Flash memory chip be broken? I don't thing so, because I can manage it correctly from ucLinux.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 17:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154162#M4277</guid>
      <dc:creator>cfernandez</dc:creator>
      <dc:date>2009-02-18T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot on M5329evb</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154163#M4278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For further information I'm still workin on It with no results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;U-boot reads and writes from NAND but only ONCE.&lt;BR /&gt;The problem appears when I write from other origin than the first one. Then, when I try to read form NAND I've got an -74 error, and this error still appears until NAND is erased.&lt;BR /&gt;&lt;BR /&gt;For example if I execute&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;nand write 30000 0 200&lt;BR /&gt;&lt;BR /&gt;NAND write: device 0 offset 0x0, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes written: OK&lt;BR /&gt;&lt;BR /&gt;NAND read: device 0 offset 0x0, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes read: OK&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;nand write 30000 200 200&lt;BR /&gt;&lt;BR /&gt;NAND write: device 0 offset 0x200, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes written: OK&lt;BR /&gt;&lt;BR /&gt;NAND read: device 0 offset 0x200, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes read: OK&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can see that there's no problem but the original address is the same in both instructions. But If I chanche this address:&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;nand write 30000 0 200&lt;BR /&gt;&lt;BR /&gt;NAND write: device 0 offset 0x0, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes written: OK&lt;BR /&gt;&lt;BR /&gt;NAND read: device 0 offset 0x0, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes read: OK&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;nand write 30400 200 200&lt;BR /&gt;&lt;BR /&gt;NAND write: device 0 offset 0x200, size 0x200&lt;BR /&gt;&amp;nbsp;512 bytes written: OK&lt;BR /&gt;&lt;BR /&gt;NAND read from offset 200 failed -74&lt;BR /&gt;&amp;nbsp;0 bytes read: ERROR&lt;BR /&gt;&lt;BR /&gt;It's the same If I do the second writting on any address, trying the 0 addres or also over the erasing block (every 0x4000) with no result. I've been taking a look at the source code, but just befor the "write byte to memory" instruction every data is correct. And after "read byte from memory" this bytes are wrong!&lt;BR /&gt;&lt;BR /&gt;I thougth that NAND was broken but managing it from uClinux I can create a jffs2 file system, write and read without any problem.&lt;BR /&gt;&lt;BR /&gt;I would appreciate any help.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 01:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154163#M4278</guid>
      <dc:creator>cfernandez</dc:creator>
      <dc:date>2009-02-20T01:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot on M5329evb</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154164#M4279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked with an engineer here and the BSP documentation indicates the Linux supports NAND memory (which is what you are seeing). However, it does not specify that U-boot supports this memory type. The BSP does not support what you are trying to do with U-boot. Sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by J2MEJediMaster on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-02-24&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:43 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 23:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154164#M4279</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-02-24T23:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: u-boot on M5329evb</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154165#M4280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved. For anyone who can have this problem: The acces time to nand have to be increased for a better access ( &lt;FONT color="#0000ff" face="Arial" size="2"&gt;&lt;/FONT&gt;nand-&amp;gt;chip_delay = 60&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An changing the GPIO flags will do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;static void nand_hwcontrol()&lt;/DIV&gt;&lt;DIV align="left"&gt;{&lt;/DIV&gt;&lt;DIV align="left"&gt;...&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulong IO_ADDR_W = (ulong) this-&amp;gt;IO_ADDR_W;&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IO_ADDR_W &amp;amp;= ~(SET_CLE | SET_ALE);&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ctrl &amp;amp; NAND_NCE)&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *nCE &amp;amp;= 0xFFFB;&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/DIV&gt;&lt;DIV align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *nCE |= 0x0004;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 01:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/u-boot-on-M5329evb/m-p/154165#M4280</guid>
      <dc:creator>cfernandez</dc:creator>
      <dc:date>2009-02-25T01:51:43Z</dc:date>
    </item>
  </channel>
</rss>

