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:
parent
7dbb1fd6b0
commit
f6741b719e
6
boards/stm32f3discovery/dist/debug.sh
vendored
6
boards/stm32f3discovery/dist/debug.sh
vendored
@ -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" \
|
||||
|
||||
3
boards/stm32f3discovery/dist/flash.sh
vendored
3
boards/stm32f3discovery/dist/flash.sh
vendored
@ -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" \
|
||||
|
||||
3
boards/stm32f3discovery/dist/reset.sh
vendored
3
boards/stm32f3discovery/dist/reset.sh
vendored
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user