From: batt Date: Thu, 8 Nov 2007 11:22:08 +0000 (+0000) Subject: Add openocd debug scripts for windows. X-Git-Tag: 1.0.0~249 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9af7766adaf9d8e7f06fd19b623cc8207058ede9;p=bertos.git Add openocd debug scripts for windows. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@993 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cpu/arm/scripts/openocd_at91sam7s_ftdi_ram_win.cfg b/cpu/arm/scripts/openocd_at91sam7s_ftdi_ram_win.cfg new file mode 100755 index 00000000..9f43d6d1 --- /dev/null +++ b/cpu/arm/scripts/openocd_at91sam7s_ftdi_ram_win.cfg @@ -0,0 +1,52 @@ +# +# Flash AT91SAM7S memory using openocd +# and a FTDI FT2232-based JTAG-interface +# +# created by Martin Thomas +# based on information from Dominic Rath +# + +#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 0 +jtag_nsrst_delay 200 +jtag_ntrst_delay 200 + +#use combined on interfaces or targets that can't set TRST/SRST separately +reset_config srst_only 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_init 0 arm7tdmi +run_and_halt_time 0 30 + +# flash-options AT91 +target_script 0 reset openocd_at91sam7s_reset.script +working_area 0 0x00200000 0x10000 nobackup +flash bank at91sam7 0 0 0 0 0 + +# Information: +# erase command (telnet-interface) for complete flash: +# flash erase 0 numlockbits-1 (can be seen from output of flash info 0) +# SAM7S64 with 16 lockbits and bank 0: flash erase 0 0 15 +# set/clear NVM-Bits: +# at91sam7 gpnvm +# disable locking from SAM-BA +# flash protect 0 0 1 off + +# 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/cpu/arm/scripts/openocd_at91sam7s_ftdi_rom_win.cfg b/cpu/arm/scripts/openocd_at91sam7s_ftdi_rom_win.cfg new file mode 100755 index 00000000..37f82134 --- /dev/null +++ b/cpu/arm/scripts/openocd_at91sam7s_ftdi_rom_win.cfg @@ -0,0 +1,52 @@ +# +# Flash AT91SAM7S memory using openocd +# and a FTDI FT2232-based JTAG-interface +# +# created by Martin Thomas +# based on information from Dominic Rath +# + +#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 0 +jtag_nsrst_delay 200 +jtag_ntrst_delay 200 + +#use combined on interfaces or targets that can't set TRST/SRST separately +reset_config srst_only 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_init 0 arm7tdmi +run_and_halt_time 0 30 + +# flash-options AT91 +target_script 0 reset openocd_at91sam7s_flash.script +working_area 0 0x00100000 0x40000 nobackup +flash bank at91sam7 0 0 0 0 0 + +# Information: +# erase command (telnet-interface) for complete flash: +# flash erase 0 numlockbits-1 (can be seen from output of flash info 0) +# SAM7S64 with 16 lockbits and bank 0: flash erase 0 0 15 +# set/clear NVM-Bits: +# at91sam7 gpnvm +# disable locking from SAM-BA +# flash protect 0 0 1 off + +# 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/cpu/arm/scripts/openocd_ram.bat b/cpu/arm/scripts/openocd_ram.bat new file mode 100755 index 00000000..4b7e7b80 --- /dev/null +++ b/cpu/arm/scripts/openocd_ram.bat @@ -0,0 +1 @@ +openocd -f openocd_at91sam7s_ftdi_ram_win.cfg diff --git a/cpu/arm/scripts/openocd_rom.bat b/cpu/arm/scripts/openocd_rom.bat new file mode 100755 index 00000000..0534a2c2 --- /dev/null +++ b/cpu/arm/scripts/openocd_rom.bat @@ -0,0 +1 @@ +openocd -f openocd_at91sam7s_ftdi_rom_win.cfg