
Dear Ramesh,
i am running last u-boot (pulled yesterday) on a coldfire m5307 and a SST 16bit flash, erasing works fine.
From your debug trace seems the correct erasing command (0x30) is
sent.
But the function you mentioned detect that flash is not erased.
Are you using a 16bit port for data connection to the flash ?
First check i would do is an "erase" test.
Try to erase some sectors with "erase" command, something like
# erase 40000 4ffff
Then dump the memory, (to be sure also with BDM eventually), to see if it has really been erased.
Also, these are some settings i am using in my config, maybe they can be useful:
/* * Start addresses for the final memory configuration * (Set up by the startup code) * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 */ #define CONFIG_SYS_SDRAM_BASE 0x00000000 #define CONFIG_SYS_SDRAM_SIZE 16 /* in MB */ #define CONFIG_SYS_FLASH_BASE 0xffc00000 #define CONFIG_SYS_TEXT_BASE 0xffc00000 #define CONFIG_SYS_MAX_FLASH_BANKS 1 #define CONFIG_SYS_MAX_FLASH_SECT 1024 #define CONFIG_SYS_FLASH_ERASE_TOUT 1000
/* * CFI FLASH driver setup */ #define CONFIG_SYS_FLASH_CFI #define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
...
Let us know if you find something.
Regards, Angelo