1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

SQUASHME: adding ports for openocd

This commit is contained in:
Thomas Eichinger 2015-01-28 15:05:04 +01:00
parent 7dbb1fd6b0
commit f6741b719e
3 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,11 @@ if [ ! -f "$2" ]; then
exit 1
fi
# if GDB_PORT does not exist or holds empty string
if [ -z ${GDB_PORT} ]; then
GDB_PORT=0
fi
echo "##"
echo "## Debugging $2"
echo "##"
@ -12,6 +17,7 @@ echo "##"
openocd -f "board/stm32f3discovery.cfg" \
-c "tcl_port 6333" \
-c "telnet_port 4444" \
-c "gdb_port ${GDB_PORT}"
-c "init" \
-c "targets" \
-c "reset halt" \

View File

@ -6,6 +6,9 @@ echo "##"
openocd -f "board/stm32f3discovery.cfg" \
-c "init" \
-c "tcl_port 0" \
-c "telnet_port 0" \
-c "gdb_port 0" \
-c "targets" \
-c "reset halt" \
-c "program $1 0x08000000 verify" \

View File

@ -6,5 +6,8 @@ echo "##"
openocd -f "board/stm32f3discovery.cfg" \
-c "init" \
-c "tcl_port 0" \
-c "telnet_port 0" \
-c "gdb_port 0" \
-c "reset run"\
-c "shutdown"