The flash bank command in the LPC2103 configuration file(target/lpc2103.cfg)
looks like the follwing:

# 32kB of internal Flash, core clocked with 12MHz crystal
# flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock>
[calc_checksum]
flash bank lpc2000 0x0 0x8000 0 0 0 lpc2000_v2 12000 calc_checksum

>From OpenOcd online manual:
— Flash Driver: *lpc2000*

Most members of the LPC2000 microcontroller family from NXP include internal
flash and use ARM7TDMI cores. The lpc2000 driver defines two mandatory and
one optional parameters, which must appear in the following order:

   - variant ... required, may be lpc2000_v1 (older LPC21xx and LPC22xx) or
   lpc2000_v2 (LPC213x, LPC214x, LPC210[123], LPC23xx and LPC24xx)
   - clock_kHz ... the frequency, in kiloHertz, at which the core is running

   - calc_checksum ... optional (but you probably want to provide this!),
   telling the driver to calculate a valid checksum for the exception vector
   table.

LPC flashes don't require the chip and bus width to be specified.

          flash bank lpc2000 0x0 0x7d000 0 0 $_TARGETNAME \
                lpc2000_v2 14765 calc_checksum


Based on the manual should the flash bank command contain lpc2000_v1 instead
of lpc2000_v2?


-Ananda
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to