Hi, all
There are two different type flashs on our
customboard (mpc8540 based): AM29LV040B(bank 2) and 28F128J3(bank 1).
To support the both, I refer to the example "board/cpu86/flash.c". My work
is mainly to change flash width from 64bit to 8bit.
Using flash driver, I can do any operation
on AM29LV040B, such as erase, cp. But 28F128J3 does not work
well:
a) I use "erase 1:0" to erase the first
block, but I found that all block of this flash is 0xff (using "md.b").
b) After eraseing, I can copy something to
the flash successfully(using "cp.b" to copy and "md.b" to view).
c) When I reboot the board, it seems that
nothing happened to the flash. The content of the flash is not
changed.
I am so puzzled, what happend?
Best Regards,
Cui