<br><br><div><span class="gmail_quote">On 5/3/07, <b class="gmail_sendername">Tolunay Orkun</b> <<a href="mailto:listmember@orkun.us">listmember@orkun.us</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Shiju Mathew wrote:<br>> On Wed, 2007-02-05 at 18:10 -0500, Tolunay Orkun wrote:<br>>> Shiju Mathew wrote:<br>>>> On Wed, 2007-02-05 at 02:29 +0200, Wolfgang Denk wrote:<br>>>><br>>>><br>
>> Does this happen with DEBUG enabled? Did you check with DEBUG disabled?<br>>> I noticed that DEBUG distrupts some of the registers used for status<br>>> checking...<br>>><br>>> If you have to have DEBUG enabled for testing something else please put
<br>>> #undef DEBUG towards the beginning of cfi_flash.c (after #include etc)<br>> Looks likes some other issue. On our Freescale imx31 ADS board we have<br>> connected an extension board(RAM like device) to CS1 through the logical
<br>> analyser interface. The problem happens when I connect the extension<br>> board(even without powering up the extension board). If I remove the<br>> extension board the flash erase/writes are successfull.<br>
><br>> Thanks,<br>> Shiju<br>><br><br>Looks like an hardware/interfacing issue...<br><br></blockquote></div>I was debugging the problem further. We have two other bootloaders running on this board - redboot and Eboot. Both does not have this problem. Only on Uboot I am experiencing this problem. On debugging what I could find is that when I erase a sector, the function flash_is_busy() returns immidiatly with success(not busy). Usually it should loop for a while in this function before returning that the flash is not busy. Before writing to the erased sector, the "md" command displayed 0xffffffff for the erased sector. But when I tried to write data to the erased location using
cp.b, the function flash_write_cfiword() returns with error "flash is not erased" since it failed to find 0xffffffff in the erased locations(Check if Flash is (sufficiently) erased). So why does "md" displays 0xffffffff for erased locations and flash routine says it is not 0xffffffff ? Could someone explain why this difference.
<br><br>Thanks,<br>Shiju<br><br clear="all"><br>-- <br>Regards,<br>Shiju