On Wed, 2009-06-03 at 18:55 +0200, Michael Schwingen wrote:
> >
> > #### flash bank ####
> > # chip_width(addr width) is 16 bit, bus_width(data width) is 8 bit
> > flash bank cfi 0x10000000 0x8000000 2 1 0
> >
> > Is it correct? In fact, I am not very sure the meaning of chip_width 
> > and bus_width in bank structure from source code.
> chip_width is 1, since 1 byte (8 bits) are connected, and bus_width 
> should be 1, too. Furthermore, you need the x16_as_x8 option to tell 
> openocd that the flash uses shifted address lines.
> 
> I hope the address lines are connected correctly (with A-1 on the flash 
> connected to A0 on the CPU)?

You're quite right.

After I changed CPU bus to 8 bit wide and follow from your word, the new
config is:

flash bank cfi 0x10000000 0x8000000 1 1 0 x16_as_x8

It works now.

>telnet
Flash Manufacturer/Device: 0x007f 0x00c9
flash 'cfi' found at 0x10000000

So I can do program the flash with cfi I think. Thanks a lot.

PS: The lastest openocd manual has no description about x16_as_x8
option???

Regars,

--
ZJ

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to