Hallo,
ich versuche gerade verzweifelt eine 13 K grosse Firmware mittels
openocd in einen LPC2148 zu flashen. Nur bricht er leider ab. Mir ist
auch nicht ganz klar ob das so passt.
> flash write 0 main.bin 0
failed writing file main.bin to flash bank 0 at offset 0x00000000
flash program error
wrote 12880 byte from file main.bin to flash bank 0 at offset 0x00000000
in 1s 774613us (7.087813 kb/s)
Wenn ich es im Windows mit einem anderen Programm ueber JTAG flash, sehe
ich wie er nacheinander die einzelnen Bloecke durchgeht. Hat jemand eine
Idee was ich da machen muss, dass es bei mir im openocd funktioniert?
Das steht gerade in meiner Konfigurationsdatei:
#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
> flash info 0
#1: lpc2000 at 0x00000000, size 0x00040000, buswidth 0, chipwidth 0
#0: 0x00000000 (0x2000kB) erase state unknown, protected
#1: 0x00002000 (0x2000kB) erase state unknown, protected
#2: 0x00004000 (0x2000kB) erase state unknown, protected
#3: 0x00006000 (0x2000kB) erase state unknown, protected
#4: 0x00008000 (0x2000kB) erase state unknown, protected
#5: 0x0000a000 (0x2000kB) erase state unknown, protected
#6: 0x0000c000 (0x2000kB) erase state unknown, protected
#7: 0x0000e000 (0x2000kB) erase state unknown, protected
#8: 0x00010000 (0x10000kB) erase state unknown, protected
#9: 0x00020000 (0x10000kB) erase state unknown, protected
#10: 0x00030000 (0x2000kB) erase state unknown, protected
#11: 0x00032000 (0x2000kB) erase state unknown, protected
#12: 0x00034000 (0x2000kB) erase state unknown, protected
#13: 0x00036000 (0x2000kB) erase state unknown, protected
#14: 0x00038000 (0x2000kB) erase state unknown, protected
#15: 0x0003a000 (0x2000kB) erase state unknown, protected
#16: 0x0003c000 (0x2000kB) erase state unknown, protected
#17: 0x0003e000 (0x2000kB) erase state unknown, protected
Danke!
Gruss Bene