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

This is the flash configuration that I have added to the original OpenOCD
LP2478 config file:
Code:
flash bank $_FLASHNAME2 cfi 0x80000000 0x1000000 2 2 $_TARGETNAME


So what is wrong with the write_image command?

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to