I have olimex board lpc l-2294 + arm USB OCD.
I still didn’t reach the end of the flash, but it looks like the very last segment cannot be erased.
*****my flash configuration *****
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
flash bank cfi 0x80000000 0x200000 2 2 0
**** my telnet session below demonstrates that sector #17 cannot be erased ****
flash info 0
#0: lpc2000 at 0x00000000, size 0x00040000, buswidth 0, chipwidth 0
#0: 0x00000000 (0x2000 8kB) erase state unknown, protected
#1: 0x00002000 (0x2000 8kB) erase state unknown, protected
#2: 0x00004000 (0x2000 8kB) erase state unknown, protected
#3: 0x00006000 (0x2000 8kB) erase state unknown, protected
#4: 0x00008000 (0x2000 8kB) erase state unknown, protected
#5: 0x0000a000 (0x2000 8kB) erase state unknown, protected
#6: 0x0000c000 (0x2000 8kB) erase state unknown, protected
#7: 0x0000e000 (0x2000 8kB) erase state unknown, protected
#8: 0x00010000 (0x10000 64kB) erase state unknown, protected
#9: 0x00020000 (0x10000 64kB) erase state unknown, protected
#10: 0x00030000 (0x2000 8kB) erase state unknown, protected
#11: 0x00032000 (0x2000 8kB) erase state unknown, protected
#12: 0x00034000 (0x2000 8kB) erase state unknown, protected
#13: 0x00036000 (0x2000 8kB) erase state unknown, protected
#14: 0x00038000 (0x2000 8kB) erase state unknown, protected
#15: 0x0003a000 (0x2000 8kB) erase state unknown, protected
#16: 0x0003c000 (0x2000 8kB) erase state unknown, protected
#17: 0x0003e000 (0x2000 8kB) erase state unknown, protected
lpc2000 flash driver variant: 1, clk: 14765
flash erase
usage: flash erase
flash erase 0 0 17
sector number(s) invalid
flash erase 0 0 16
erased sectors 0 through 16 on flash bank 0 in 0s 160230us
Is it an error of openocd or am I confused with indexing of sectors?
Best Regards
Bronislav Gabrhelik