Files
mkrtos-real/mkrtos_script/debug_m4.sh
2024-09-23 00:11:15 +08:00

13 lines
228 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]; then
echo "usage: ./debug.sh [tcp port]"
exit
fi
qemu-system-arm -machine\
netduinoplus2 -cpu cortex-m4 \
-nographic -m size=2\
-kernel $PWD/build/output/kernel.img \
-S -gdb tcp::$1