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: