Fix "Found unknown command" doxygen warnings.
[bertos.git] / bertos / cpu / cortex-m3 / scripts / openocd_new_luminary_ram.cfg
1 # Script for luminary lm3s*
2
3 # Change the default telnet port...
4 telnet_port 4444
5
6 # Port for TCL connection.
7 tcl_port 6666
8
9 # GDB connects here
10 gdb_port 3333
11
12 # GDB can also flash my flash!
13 gdb_memory_map enable
14 gdb_flash_program disable
15 gdb_breakpoint_override soft
16
17 # ftdi interface
18 interface ft2232
19 #ft2232_device_desc "LM3S811 Evaluation Board A"
20 ft2232_layout evb_lm3s811
21 ft2232_vid_pid 0x0403 0xbcd9
22
23
24 if { [info exists CHIPNAME] }
25 {
26    set  _CHIPNAME $CHIPNAME 
27 } else
28 {
29    set  _CHIPNAME lm3s
30 }
31
32 if { [info exists ENDIAN] }
33 {       
34    set  _ENDIAN $ENDIAN 
35 } else
36 {
37   # this defaults to a little endian
38    set  _ENDIAN little
39 }
40
41 if { [info exists CPUTAPID ] }
42 {
43    set _CPUTAPID $CPUTAPID
44 } else
45 {
46   # force an error till we get a good number
47    set _CPUTAPID 0xffffffff
48 }
49
50 # jtag speed
51 jtag_khz 500
52
53 jtag_nsrst_delay 100
54 jtag_ntrst_delay 100
55
56 #LM3S811 Evaluation Board has only srst
57 reset_config srst_only
58
59 #jtag scan chain
60 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
61
62 # the luminary variant causes a software reset rather than asserting SRST
63 # this stops the debug registers from being cleared
64 # this will be fixed in later revisions of silicon
65 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
66 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
67
68 # 8k working area at base of ram
69 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
70
71 #flash configuration
72 flash bank stellaris 0 0 0 0 0
73