Hello again, I think I discovered a bug in the cfi driver. The board I'm working with has 2 16 bit flash chips connected to a 32 bit bus. I configured the flash bank as following:
flash bank cfi 0xbe000000 0x2000000 2 4 0 The chip-width is 2 and the bus width is 4. The flashes have a 32 byte fast programming page. When debugging the programming I noticed the flash was programmed in 64 byte chunks (which is correct 2 times 32 bytes) but the address was incremented by 32. This means that the flash is programmed twice. I made some changes to cfi.c to take the bus-width and chip-width into account. Nico Coesel
cfi.c_bus_chip_width.patch
Description: cfi.c_bus_chip_width.patch
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development