aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMooneer Salem <[email protected]>2023-10-01 20:48:45 -0700
committerMooneer Salem <[email protected]>2023-10-01 20:48:45 -0700
commit6502a7579acce8e252953191ce7aa53c676827fc (patch)
treee902936e75b1993a3f89261e53e351f644fed01b
parent3d8d1952496b64236628b42436016401bfd1117a (diff)
Figured out command needed to get stdio/stderr to redirect properly.
-rwxr-xr-xstm32/unittest/scripts/run_stm32_prog4
1 files changed, 1 insertions, 3 deletions
diff --git a/stm32/unittest/scripts/run_stm32_prog b/stm32/unittest/scripts/run_stm32_prog
index ac1e661..b277b47 100755
--- a/stm32/unittest/scripts/run_stm32_prog
+++ b/stm32/unittest/scripts/run_stm32_prog
@@ -34,13 +34,11 @@ if [ ${ARGS[--qemu]+_} ]; then
# QEMU
cat <<-EEOOFF >> gdb_cmds
shell killall qemu-system-arm
- shell qemu-system-arm -M netduinoplus2 -s -S -semihosting -monitor null -serial null -nographic -kernel ${ELF} &
+ shell qemu-system-arm -M netduinoplus2 -s -S -chardev stdio,id=sio -semihosting -semihosting-config enable=on,target=native,chardev=sio -monitor null -serial null -nographic -kernel ${ELF} 2> >(tee stderr.log >&2) | tee stdout.log &
shell sleep ${UT_SLEEP}
target remote :1234
monitor arm semihosting enable
monitor arm semihosting_fileio $UT_SH_FIO
- set logging file stdout.log
- set logging on
EEOOFF
SHUTDOWN="shell killall qemu-system-arm"
elif [ ! ${ARGS[--st-util]+_} ]; then