2008-03-01 16:26:48 +00:00
|
|
|
#daemon configuration
|
|
|
|
telnet_port 4444
|
|
|
|
gdb_port 3333
|
|
|
|
|
|
|
|
# tell gdb our flash memory map
|
|
|
|
# and enable flash programming
|
|
|
|
gdb_memory_map enable
|
|
|
|
gdb_flash_program enable
|
|
|
|
|
|
|
|
#interface
|
|
|
|
interface ft2232
|
|
|
|
ft2232_device_desc "Amontec JTAGkey A"
|
|
|
|
ft2232_layout jtagkey
|
|
|
|
ft2232_vid_pid 0x0403 0xcff8
|
|
|
|
jtag_speed 3
|
|
|
|
|
|
|
|
#use combined on interfaces or targets that can't set TRST/SRST separately
|
|
|
|
reset_config trst_and_srst srst_pulls_trst
|
|
|
|
|
|
|
|
#jtag scan chain
|
2009-12-15 17:15:54 +00:00
|
|
|
jtag newtap lpc cpu -irlen 4 -irmask 0xf
|
2008-03-01 16:26:48 +00:00
|
|
|
|
|
|
|
#target configuration
|
2014-09-08 20:11:02 +00:00
|
|
|
target create target0 arm7tdmi -endian little -chain-position 0
|
2008-10-30 08:04:11 +00:00
|
|
|
[new_target_name] configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup false
|
2008-03-01 16:26:48 +00:00
|
|
|
|
|
|
|
#flash configuration
|
|
|
|
#flash bank lpc2000 <base> <size> 0 0 <target#> <variant>
|
|
|
|
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14765 calc_checksum
|
|
|
|
|
2010-01-27 02:09:27 +00:00
|
|
|
# For more information about the configuration files,
|
|
|
|
# look at the OpenOCD User's Guide.
|
2008-10-30 08:04:11 +00:00
|
|
|
|
|
|
|
init
|
|
|
|
reset halt
|