# OpenOCD configuration for LPC17xx ARM MCU # $Id: lpc17xx.openocd 3383 2011-11-24 14:42:04Z svn $ # TCP server configuration gdb_port 3333 telnet_port 4444 tcl_port 6666 # Reset configuration reset_config trst_and_srst # JTAG configuration jtag_khz 500 jtag_nsrst_delay 200 jtag_ntrst_delay 200 # Target configuration jtag newtap LPC17xx cpu -irlen 4 -ircapture 0x1 -irmask 0xF -expected-id 0x4ba00477 target create LPC17xx.cpu cortex_m3 -endian little -chain-position LPC17xx.cpu LPC17xx.cpu configure -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0 # Flash configuration flash bank 0 lpc2000 0x0 0x80000 0 0 LPC17xx.cpu lpc1700 14746 calc_checksum # GDB event handlers LPC17xx.cpu configure -event gdb-attach { reset halt } LPC17xx.cpu configure -event gdb-detach { resume }