From 6502a7579acce8e252953191ce7aa53c676827fc Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Sun, 1 Oct 2023 20:48:45 -0700 Subject: Figured out command needed to get stdio/stderr to redirect properly. --- stm32/unittest/scripts/run_stm32_prog | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3