On Wed, Apr 29, 2009 at 12:56 PM, Brian Hutchinson <[email protected]>wrote:
> Update. Last night I checked out version 1561 which has the cfi bus/chip > width fixes. I tried it this morning and finally got it to work. My > workspace ram turned out to be my next problem and after I just commented it > out, was able to flash u-boot and recover the board! :) > > Yes, my flash parts (two of them) are either 8 or 16 bits wide and in their > current config, the ce, we, oe are all tied together making them 32bit > wide. I didn't know if I should use 4 or 2 in the cfi config line for chip > width but using 2 for the chip width and 4 for the bus width worked!!! > > When I probe flash, a message comes back and says that the total size was > 0x08000000 but the CFI size is 0x04000000 (I should post the exact message > but I'm on a different machine). > > Thanks for the patch and thanks to others for pointing me in the right > direction. The last board I worked on had a single flash so it has been a > learning experience getting this new board going. > > Regards, > > Brian > > Just another follow up to post some actual messages returned just in case this helps someone else trying to figure out their flash bank cfi line and what they might expect to see when using two flash parts in a bank. The two flashes combined that I was using totaled 0x80000000 for the <size> parameter of the flash bank cfi line but during the fine tuning of the config files, some potentially confusing information is displayed. While I had the chip width set wrong, flash probe 0 (and other commands) would return something like: With size set to 0x40000000: > flash erase_address 0x20030000 128 Flash Manufacturer/Device: 0x0001 0x0001 configuration specifies 0x4000000 size, but a 0x4000000 size flash was found CFI size is 0x4000000, but total sector size is 0x8000000 erased address 0x20030000 length 128 in 0.428830s With the "correct" size setting, I would get this message: With size set to 0x80000000: > flash probe 0 Flash Manufacturer/Device: 0x0001 0x0001 CFI size is 0x4000000, but total sector size is 0x8000000 flash 'cfi' found at 0x20000000
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
