ad672e95887ae2642e7268b9e867e376d66300ce
[bertos.git] / bertos / cpu / arm / scripts / openocd / flash.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         # this will work only with (intel) hex files, which have ROM address information
17         flash write_image IMAGE_FILE
18 }
19
20 $_TARGETNAME configure -event reset-end "shutdown"
21
22 init
23 reset run