Add Openocd debug configuration and gdb init script.
[bertos.git] / bertos / cpu / arm / scripts / openocd / debug.cfg
1 # Change the default telnet port...
2 telnet_port 4444
3
4 # Port for TCL connection.
5 tcl_port 6666
6
7 # GDB connects here
8 gdb_port 3333
9
10 source [find PROGRAMMER_TYPE]
11
12 source [find PROGRAMMER_CPU]
13
14 $_TARGETNAME configure -event reset-start {
15         cpu_setup
16 }
17
18 $_TARGETNAME configure -event gdb-detach {
19         shutdown
20 }
21
22 init
23 reset run