For at91sam7 family.
[bertos.git] / cpu / arm / scripts / openocd_at91sam7_ftdi_rom.cfg
1 #\r
2 # Flash AT91SAM7S memory using openocd \r
3 # and a FTDI FT2232-based JTAG-interface\r
4 #\r
5 # created by Martin Thomas \r
6 # based on information from Dominic Rath\r
7 #\r
8 \r
9 #daemon configuration\r
10 telnet_port 4444\r
11 gdb_port 3333\r
12 \r
13 #interface\r
14 interface ft2232\r
15 ft2232_device_desc "Amontec JTAGkey"\r
16 ft2232_layout jtagkey\r
17 ft2232_vid_pid 0x0403 0xcff8\r
18 jtag_speed 0\r
19 jtag_nsrst_delay 200\r
20 jtag_ntrst_delay 200\r
21 \r
22 #use combined on interfaces or targets that can't set TRST/SRST separately\r
23 reset_config srst_only srst_pulls_trst\r
24 \r
25 #jtag scan chain\r
26 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)\r
27 jtag_device 4 0x1 0xf 0xe\r
28 \r
29 #target configuration\r
30 daemon_startup reset\r
31 \r
32 #target <type> <startup mode>\r
33 #target arm7tdmi <reset mode> <chainpos> <endianness> <variant>\r
34 target arm7tdmi little run_and_init 0 arm7tdmi\r
35 run_and_halt_time 0 30\r
36 \r
37 # flash-options AT91\r
38 target_script 0 reset openocd_at91sam7_flash.script\r
39 working_area 0 0x00100000 0x40000 nobackup\r
40 flash bank at91sam7 0 0 0 0 0\r
41 \r
42 # Information: \r
43 # erase command (telnet-interface) for complete flash:\r
44 # flash erase <num> 0 numlockbits-1 (can be seen from output of flash info 0)\r
45 # SAM7S64 with 16 lockbits and bank 0: flash erase 0 0 15\r
46 # set/clear NVM-Bits:\r
47 # at91sam7 gpnvm <num> <bit> <set|clear>\r
48 # disable locking from SAM-BA\r
49 # flash protect 0 0 1 off\r
50 \r
51 # For more information about the configuration files, take a look at:\r
52 # http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger\r