Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gdb-server-launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def signal_handler(sig, frame):
settings.GDB_SERVER_PORT,
settings.GDB_SWO_PORT,
settings.GDB_SERVER_PATH,
settings.STLINK_PROG_DIR],
settings.STLINK_PROG_DIR,
settings.APID],
shell=False)

# Start the dummy port. Will exit when the GDB server exits.
Expand Down
Binary file modified img/debug_conf_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion run_stlink_gdb_server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ echo GDB_SERVER_PATH: %GDB_SERVER_PATH%
set STLINK_PROG_DIR=%4%
echo STLINK_PROG_DIR: %STLINK_PROG_DIR%

set APID=%5%
echo APID: %APID%

%GDB_SERVER_PATH% ^
--port-number %GDB_PORT% ^
--swd ^
Expand All @@ -21,4 +24,4 @@ echo STLINK_PROG_DIR: %STLINK_PROG_DIR%
--attach ^
--verbose ^
-cp %STLINK_PROG_DIR% ^
-m 0
-m %APID%
5 changes: 4 additions & 1 deletion run_stlink_gdb_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo " GDB_SERVER_PATH: ${GDB_SERVER_PATH}"
export STLINK_PROG_DIR=$4
echo " STLINK_PROG_DIR: ${STLINK_PROG_DIR}"

export APID=$5
echo " APID: ${APID}"

${GDB_SERVER_PATH} \
--port-number ${GDB_PORT} \
--swd \
Expand All @@ -22,4 +25,4 @@ ${GDB_SERVER_PATH} \
--attach \
--verbose \
-cp ${STLINK_PROG_DIR} \
-m 0
-m ${APID}
4 changes: 4 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@
# script. If you change this, also update the SWO port number in your Debug Configuration
# under "Serial Wire Viewer" settings.
IDE_SWO_PORT = '61035'

# Most target MCUs have only one access port (AP).
# If you need to connect to a different port, you can specify it here.
APID = '0'