- added -c option that will execute an openocd command
[fw/openocd] / src / target / target / at91eb40a.cfg
1 #Script for AT91EB40a\r
2 \r
3 #Atmel ties SRST & TRST together, at which point it makes\r
4 #no sense to use TRST, but use TMS instead.\r
5 #\r
6 #The annoying thing with tying SRST & TRST together is that\r
7 #there is no way to halt the CPU *before and during* the\r
8 #SRST reset, which means that the CPU will run a number\r
9 #of cycles before it can be halted(as much as milliseconds).\r
10 reset_config srst_only srst_pulls_trst\r
11  \r
12 #jtag scan chain\r
13 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)\r
14 jtag_device 4 0x1 0xf 0xe\r
15 \r
16 #target configuration\r
17 #target arm7tdmi <endianness> <reset mode> <chainpos> <variant>\r
18 target arm7tdmi little reset_init 0 arm7tdmi-s_r4\r
19 \r
20 # speed up memory downloads\r
21 arm7 fast_memory_access enable\r
22 arm7_9 dcc_downloads enable\r
23 \r
24 # OpenOCD does not have a flash driver for for AT91FR40162S \r
25 target_script 0 reset event/at91eb40a_reset.cfg\r
26 \r
27 # required for usable performance. Used for lots of\r
28 # other things than flash programming.\r
29 working_area 0 0x00000000 0x20000 nobackup\r
30 \r
31 #force hardware values - we're running out of flash more\r
32 #often than not. The user can disable this in his\r
33 #subsequent config script.\r
34 arm7_9 force_hw_bkpts enable\r