The LPC2368 has flash banks numbered 0 to 27 from address 0x0 to 0x7dfff.
Shouldn’t the flash bank for the LPC2368 be defined like:
flash bank lpc2000 0x0 0x7e000 0 0 0 lpc2000_v2 12000 calc_checksum
Using a value of 0x7e000 or 0x7dfff generates an error “BUG: unknown bank->size encountered”. Using a value of 0x7d000 works, but does not reccognize bank 27.