From: oharboe Date: Tue, 6 May 2008 09:12:00 +0000 (+0000) Subject: The target library is now the authorotative source of config examples X-Git-Tag: v0.1.0~647 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=483ed5da4d3ef24c71f923c24214b2bc6b21eda6 The target library is now the authorotative source of config examples git-svn-id: svn://svn.berlios.de/openocd/trunk@642 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/doc/configs/arm7_ft2232.cfg b/doc/configs/arm7_ft2232.cfg deleted file mode 100644 index 3dadb0a29e..0000000000 --- a/doc/configs/arm7_ft2232.cfg +++ /dev/null @@ -1,29 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface ft2232 -ft2232_device_desc "Amontec JTAGkey A" -ft2232_layout jtagkey -ft2232_vid_pid 0x0403 0xcff8 -jtag_speed 2 -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst srst_pulls_trst - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup reset -#target -#target arm7tdmi -target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4 -target_script 0 reset h2294_init.script -run_and_halt_time 0 30 -working_area 0 0x40000000 0x40000 nobackup - -#flash configuration -flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum -flash bank cfi 0x80000000 0x400000 2 2 0 diff --git a/doc/configs/arm7_wig.cfg b/doc/configs/arm7_wig.cfg deleted file mode 100644 index c1e6bf9e31..0000000000 --- a/doc/configs/arm7_wig.cfg +++ /dev/null @@ -1,28 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface parport -parport_port 0x378 -parport_cable wiggler -jtag_speed 0 -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst srst_pulls_trst - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup reset -#target -#target arm7tdmi -target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4 -target_script 0 reset h2294_init.script -run_and_halt_time 0 30 -working_area 0 0x40000000 0x40000 nobackup - -#flash configuration -flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum -flash bank cfi 0x80000000 0x400000 2 2 0 diff --git a/doc/configs/arm9_ft2232.cfg b/doc/configs/arm9_ft2232.cfg deleted file mode 100644 index 732cebab6f..0000000000 --- a/doc/configs/arm9_ft2232.cfg +++ /dev/null @@ -1,28 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface ft2232 -ft2232_device_desc "Amontec JTAGkey A" -ft2232_layout "jtagkey" -ft2232_vid_pid 0x0403 0xcff8 -jtag_speed 1 -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup reset -#target -target arm9tdmi little reset_halt 0 arm920t -working_area 0 0x200000 0x4000 backup -run_and_halt_time 0 5000 - -#flash configuration -#flash bank [driver_options ...] -flash bank cfi 0x10000000 0x800000 2 2 0 - diff --git a/doc/configs/at91sam7_ecr.cfg b/doc/configs/at91sam7_ecr.cfg deleted file mode 100644 index 71e2644813..0000000000 --- a/doc/configs/at91sam7_ecr.cfg +++ /dev/null @@ -1,25 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface at91rm9200 -at91rm9200_device rea_ecr -jtag_speed 0 -reset_config srst_only - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup reset - -#target -#target arm7tdmi -target arm7tdmi little reset_halt 0 arm7tdmi -target_script 0 reset at91sam7_ecr.script -working_area 0 0x00200000 0x2000 nobackup - -#flash configuration -flash bank at91sam7 0 0 0 0 0 diff --git a/doc/configs/chameleon.cfg b/doc/configs/chameleon.cfg deleted file mode 100644 index 94d581c6f1..0000000000 --- a/doc/configs/chameleon.cfg +++ /dev/null @@ -1,12 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface parport -parport_cable chameleon -jtag_speed 0 - -#jtag scan chain -# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 5 0x01 0x1f 0x01 diff --git a/doc/configs/fury_ft2232.cfg b/doc/configs/fury_ft2232.cfg deleted file mode 100644 index 5aa00892d4..0000000000 --- a/doc/configs/fury_ft2232.cfg +++ /dev/null @@ -1,28 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface ft2232 -ft2232_device_desc "Stellaris Evaluation Board A" -ft2232_layout evb_lm3s811 -ft2232_vid_pid 0x0403 0xbcd9 -jtag_speed 40 -#LM3S811 Evaluation Board has only srst -reset_config srst_only separate - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup attach -#target -#target arm7tdmi -target cortex_m3 little run_and_halt 0 -# 4k working area at base of ram -working_area 0 0x20000800 0x1200 nobackup -#target_script 0 reset ../doc/scripts/evb_lm3s811_test.script - -#flash configuration -flash bank stellaris 0 0 0 0 0 diff --git a/doc/configs/usbprog.cfg b/doc/configs/usbprog.cfg deleted file mode 100644 index fa434dde3e..0000000000 --- a/doc/configs/usbprog.cfg +++ /dev/null @@ -1,26 +0,0 @@ -#daemon configuration -telnet_port 4444 -gdb_port 3333 - -#interface -interface usbprog -jtag_speed 2 - -#use combined on interfaces or targets that can't set TRST/SRST separately -reset_config trst_and_srst srst_pulls_trst - -#jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 4 0x1 0xf 0xe - -#target configuration -daemon_startup reset -#target -#target arm7tdmi -target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4 -run_and_halt_time 0 30 -working_area 0 0x40000000 0x40000 nobackup - -#flash configuration -flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum -flash bank cfi 0x80000000 0x400000 2 2 0 diff --git a/doc/configs/xscale_ixp42x.cfg b/doc/configs/xscale_ixp42x.cfg deleted file mode 100644 index 26cccd5eb7..0000000000 --- a/doc/configs/xscale_ixp42x.cfg +++ /dev/null @@ -1,40 +0,0 @@ -#--- Daemon configuration ------------------------ -telnet_port 4444 -gdb_port 3333 -daemon_startup reset - -#--- JTAG interface configuration ---------------- -interface ft2232 -ft2232_device_desc "Amontec JTAGkey A" -ft2232_layout jtagkey -ft2232_vid_pid 0x0403 0xcff8 -jtag_speed 0 -jtag_nsrst_delay 200 -jtag_ntrst_delay 200 - -#-- Reset options available -reset_config trst_and_srst - -#-- jtag scan chain -#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) -jtag_device 7 0x1 0x7f 0x7e - - -#--- Target Configuration ------------------------ - -#target -#target xscale big reset_init 0 IXP42x -target xscale big reset_halt 0 IXP42x - -target_script 0 reset uc7420-rb.ocd - -run_and_halt_time 0 2500 -working_area 0 0x00100000 0x00010000 nobackup - -flash bank cfi 0x50000000 0x01000000 2 2 0 -flash bank cfi 0x51000000 0x01000000 2 2 0 - - -# For more information about the configuration files, take a look at: -# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger - diff --git a/doc/scripts/at91sam7_ecr.script b/doc/scripts/at91sam7_ecr.script deleted file mode 100644 index f575e572ab..0000000000 --- a/doc/scripts/at91sam7_ecr.script +++ /dev/null @@ -1,10 +0,0 @@ -mww 0xfffffd44 0x00008000 # disable watchdog -mww 0xfffffd08 0xa5000001 # enable user reset -mww 0xfffffc20 0x00000601 # CKGR_MOR : enable the main oscillator -sleep 10 -mww 0xfffffc2c 0x12560a64 # CKGR_PLLR: 119.8MHz (DIV=100,MUL=598+1) -sleep 10 -mww 0xfffffc30 0x00000007 # PMC_MCKR : MCK = PLL / 2 = 59.9MHz -sleep 10 -mww 0xffffff60 0x003c0100 # MC_FMR: flash mode (FWS=1,FMCN=60) -arm7_9 force_hw_bkpts enable # program resides in flash diff --git a/doc/scripts/tms470r1a288_startup.script b/doc/scripts/tms470r1a288_startup.script deleted file mode 100644 index 18b8aee727..0000000000 --- a/doc/scripts/tms470r1a288_startup.script +++ /dev/null @@ -1,9 +0,0 @@ -# Resets and unlocks the MSM of TMS470R1A288 (an others with an MSM). -# Assumes default MSM keys (all 0xFFFFFFFF). -# -resume -jtag_reset 0 1 -halt -jtag_reset 0 0 -poll # hack-ish, but effective version of 'reset halt' -mdw 0x1fe0 4 # unlock MSM diff --git a/doc/scripts/xscale_ixp_startup.script b/doc/scripts/xscale_ixp_startup.script deleted file mode 100644 index 268055a9fc..0000000000 --- a/doc/scripts/xscale_ixp_startup.script +++ /dev/null @@ -1,36 +0,0 @@ -#--------------------------------------------------------------------- -#-- OpenOCD Reset Init Script for IXP42x box with RedBoot -#--------------------------------------------------------------------- - -#debug 3 - -#- Let U-Boot setup the box ------------------------------------------ -poll -resume 0x40 -sleep 2000 -halt -wait_halt 20 - -#- Reverse RedBoot crap ---------------------------------------------- -xscale icache disable -xscale dcache disable -xscale mmu disable - -#- Check for flash --------------------------------------------------- -flash banks -flash probe 0 -flash probe 1 -#flash protect_check 0 -#flash protect_check 1 -#flash erase_check 0 -#flash erase_check 1 -#flash info 0 -#flash info 1 - -#- Bootloader -------------------------------------------------------- -#flash erase 0 0 2 -#flash write 0 //devboc/homes/src/denx/u-boot-git/u-boot.bin 0x00000 bin - -#- Kernel Image ------------------------------------------------------ -#flash erase 0 3 23 -#flash write 0 //devbox/homes/src/pengutronics/ptxdist-project/images/linuximage 0x60000 bin diff --git a/src/target/Makefile.am b/src/target/Makefile.am index 05a395efb7..c90f54102f 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -31,4 +31,5 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script target/str730.cfg target/stm32stick.cfg event/str912_reset.script event/str710_program.script \ target/lm3s811.cfg interface/luminary.cfg interface/luminary-lm3s811.cfg interface/stm32-stick.cfg \ interface/calao-usb-a9260-c01.cfg interface/calao-usb-a9260-c02.cfg \ - interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script + interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script \ + interface/chameleon.cfg interface/at91rm9200.cfg diff --git a/src/target/interface/at91rm9200.cfg b/src/target/interface/at91rm9200.cfg new file mode 100644 index 0000000000..27ff741701 --- /dev/null +++ b/src/target/interface/at91rm9200.cfg @@ -0,0 +1,3 @@ +#interface +interface at91rm9200 +at91rm9200_device rea_ecr diff --git a/src/target/interface/chameleon.cfg b/src/target/interface/chameleon.cfg new file mode 100644 index 0000000000..b883e280ec --- /dev/null +++ b/src/target/interface/chameleon.cfg @@ -0,0 +1,4 @@ +#interface +interface parport +parport_cable chameleon +