diff --git a/ch32v003fun/ch32v003fun.mk b/ch32v003fun/ch32v003fun.mk index 81e0347c..b4d0732a 100644 --- a/ch32v003fun/ch32v003fun.mk +++ b/ch32v003fun/ch32v003fun.mk @@ -213,7 +213,7 @@ gdbserver : -$(MINICHLINK)/minichlink -baG gdbclient : - gdb-multiarch $(TARGET).elf -ex "target remote :2000" + gdb-multiarch $(TARGET).elf -ex "target remote :3333" clangd : make clean diff --git a/examples/debugprintfdemo/.vscode/launch.json b/examples/debugprintfdemo/.vscode/launch.json index f0b578dd..6dbbd516 100644 --- a/examples/debugprintfdemo/.vscode/launch.json +++ b/examples/debugprintfdemo/.vscode/launch.json @@ -21,7 +21,7 @@ ], "svdPath": "${workspaceFolder}/../../misc/CH32V003xx.svd", // extension 'Peripheral Viewer' by mcu-debug (cortex-debug) "miDebuggerPath": "gdb-multiarch", - "miDebuggerServerAddress": "127.0.0.1:2000", + "miDebuggerServerAddress": "127.0.0.1:3333", }, { "name": "Flash and run in terminal", diff --git a/examples/template/.vscode/launch.json b/examples/template/.vscode/launch.json index e86da74b..b397c7f9 100644 --- a/examples/template/.vscode/launch.json +++ b/examples/template/.vscode/launch.json @@ -21,7 +21,7 @@ ], "svdPath": "${workspaceFolder}/../../misc/CH32V003xx.svd", // extension 'Peripheral Viewer' by mcu-debug (cortex-debug) "miDebuggerPath": "gdb-multiarch", - "miDebuggerServerAddress": "127.0.0.1:2000", + "miDebuggerServerAddress": "127.0.0.1:3333", }, { "name": "Flash and run in terminal", diff --git a/minichlink/microgdbstub.h b/minichlink/microgdbstub.h index e0608f07..3b9b5745 100644 --- a/minichlink/microgdbstub.h +++ b/minichlink/microgdbstub.h @@ -13,7 +13,7 @@ * 4: If you want to let this manage the server as a network device, simply #define MICROGDBSTUB_SOCKETS * * To connect to your GDBStub running, you can: - * gdb-multiarch -ex 'target remote :2000' ./blink.elf + * gdb-multiarch -ex 'target remote :3333' ./blink.elf * */ diff --git a/minichlink/minichgdb.c b/minichlink/minichgdb.c index 31c8d4b8..b1fd5913 100644 --- a/minichlink/minichgdb.c +++ b/minichlink/minichgdb.c @@ -1,14 +1,14 @@ // This file is loosely based on aappleby's GDBServer. // Connect in with: -// gdb-multiarch -ex "set debug remote 1" -ex "target extended-remote :2000" ./blink.elf -// gdb-multiarch -ex "target extended-remote :2000" ./blink.elf +// gdb-multiarch -ex "set debug remote 1" -ex "target extended-remote :3333" ./blink.elf +// gdb-multiarch -ex "target extended-remote :3333" ./blink.elf #include "minichlink.h" #define MICROGDBSTUB_IMPLEMENTATION #define MICROGDBSTUB_SOCKETS -#define MICROGDBSTUB_PORT 2000 +#define MICROGDBSTUB_PORT 3333 const char* MICROGDBSTUB_MEMORY_MAP = "l" "" diff --git a/minichlink/minichlink.exe b/minichlink/minichlink.exe index 31e825bc..1cdb8959 100755 Binary files a/minichlink/minichlink.exe and b/minichlink/minichlink.exe differ