From 32de5506ee0161663f2d448a5f4534922ad9a5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 13 May 2021 11:21:41 +0200 Subject: [PATCH] update hitl script --- .cargo/config | 1 + hitl/run.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.cargo/config b/.cargo/config index deffdfc..049bd28 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,4 +1,5 @@ [target.'cfg(all(target_arch = "arm", target_os = "none"))'] +# runner = "probe-run --chip STM32H743ZITx --speed 30000" runner = "gdb-multiarch -q -x openocd.gdb" rustflags = [ "-C", "link-arg=-Tlink.x", diff --git a/hitl/run.sh b/hitl/run.sh index 2af4732..f3105cc 100755 --- a/hitl/run.sh +++ b/hitl/run.sh @@ -9,15 +9,16 @@ # Enable shell operating mode flags. set -eux +trap "kill 0" EXIT # Set up python for testing python3 -m venv --system-site-packages py . py/bin/activate python3 -m pip install -r requirements.txt -cargo flash --elf target/thumbv7em-none-eabihf/release/dual-iir --chip STM32H743ZITx +probe-run --chip STM32H743ZITx target/thumbv7em-none-eabihf/release/dual-iir & -# Before attempting to ping the device, sleep to allow Stabilizer to boot. +# Sleep to allow flashing, booting, DHCP, MQTT sleep 30 # Test pinging Stabilizer. This exercises that: