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.
This commit is contained in:
iabdalkader 2025-09-12 15:23:00 +02:00
parent 9937b9cc1e
commit bcb20f45ac

View File

@ -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