________________________________
Van: [email protected]
[mailto:[email protected]] Namens Brian
Hutchinson
Verzonden: woensdag 29 april 2009 1:01
Aan: [email protected]
Onderwerp: [Openocd-development] Strange flash problem. Only 1/2
theinformation is right (and flash is hosed) :(
Hey guys,
Well I bricked a $15k board today :)
The Flash on this ARM926EJ-S core board is 2 512Mbit NOR
Spansion S29GL512N-11F chips arranged 32M x 32bit.
I was reading & writing to a blank sector just to test out my
configs and I noticed that when I did any fill command (b,h,w) to flash,
when I read back I didn't get the same results.
Here is what a flash fillb 0x20000000 0xaa 128 looks like:
0x20030000: ffffaaaa ffffaaaa ffffaaaa ffffaaaa ffffaaaa
ffffaaaa ffffaaaa ffffaaaa
0x20030020: ffffaaaa ffffaaaa ffffaaaa ffffaaaa ffffaaaa
ffffaaaa ffffaaaa ffffaaaa
0x20030040: ffffaaaa ffffaaaa ffffaaaa ffffaaaa ffffaaaa
ffffaaaa ffffaaaa ffffaaaa
0x20030060: ffffaaaa ffffaaaa ffffaaaa ffffaaaa ffffaaaa
ffffaaaa ffffaaaa ffffaaaa
Uhhh, that don't look right!
I get the same thing if I use fillh or fillw.
My cfi config is:
flash bank cfi 0x20000000 0x04000000 4 4 0 (length was
0x08000000 but flash probe said it was 0x04000000). flinfo in uboot
(when it was working) displayed from 0x20000000 to three sectors shy of
0x27ffffff so don't know if I believe the 0x04000000.
Brian,
Are you flashes 16 bits wide? If yes, then you need to specify a
different chip width and bus width. If you are using 16 bit flashes then
the chip width is 2.
Try the following:
flash bank cfi 0x20000000 0x08000000 2 4 0
There is also a small bug in cfi.c which causes the flashes to be
programmed twice. Not a show stopper but it slows things down.
Nico
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development