From bcb20f45ac0d5df722cf8103d44c566acc2b4977 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 12 Sep 2025 15:23:00 +0200 Subject: [PATCH] Makefile: Suppress J-Link GDB server output Redirect J-Link GDB server stdout and stderr to /dev/null to prevent its output from mixing with GDB output in the terminal. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b9ef5d9f..db16c6b5e 100755 --- a/Makefile +++ b/Makefile @@ -255,7 +255,7 @@ endif jlink: setsid ${JLINK_GDB_SERVER} -speed ${JLINK_SPEED} -nogui \ -if ${JLINK_INTERFACE} -halt -cpu cortex-m \ - -device ${JLINK_DEVICE} -novd ${JLINK_SCRIPT} & \ + -device ${JLINK_DEVICE} -novd ${JLINK_SCRIPT} >/dev/null 2>&1 & \ JLINK_PID=$$!; \ trap "kill $$JLINK_PID 2>/dev/null" EXIT; \ sleep 1 && jlink-gdb $(FW_DIR)/$(FIRMWARE).elf