On 11/30/2010 07:06 PM, Starkeeper wrote: > Hi there, > I have an external flash (Spansion S29GL128N90) connected to a NXP LPC2478 > microcontroller. Everytime when I try to flash this external flash I get the > following error from OpenOCD (Version 0.4.0 and self compiled 0.5.0): > > Flash Manufacturer/Device: 0x0001 0x227e > error writing to flash at address 0x80000000 at offset 0x00000000 (-902) > Command handler execution failed in procedure 'flash' called at file > "command.c", line 650 called at file "command.c", line 361 > > Command used: > monitor flash write_image erase ./bin/Debug/We-Res.hex 0x00 ihex > > > The flash is connected to the EMI and seems to works fine. OpenOCD is able > to erase the flash and I am able to read the data, that I have written > previously with the following commands: > monitor flash erase_sector 1 0 10 > monitor flash fillw 0x80000000 0x12345678 0x1000 Could you try what happens if you disable the work-area in the CPU config?
If it works, it will be dead slow, but we might get more diagnostics if the offending code runs on the PC instead of the target. If it fails, too, please provide a log of the failing operation that shows the bus cycles. BTW: you *did* set up the work area to point to an area where you have working memory? cu Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development