From 80ded1005bfbca1226db3710b80bf6786d0ebed4 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Tue, 22 Jun 2021 09:39:27 +0200 Subject: [PATCH 1/2] Updating runner to utilize cargo-embed --- hitl/run.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hitl/run.sh b/hitl/run.sh index 3eb3e35..231eed3 100755 --- a/hitl/run.sh +++ b/hitl/run.sh @@ -15,7 +15,7 @@ python3 -m venv --system-site-packages py . py/bin/activate python3 -m pip install -r requirements.txt -probe-run --chip STM32H743ZITx target/thumbv7em-none-eabihf/release/dual-iir & +cargo embed --bin target/thumbv7em-none-eabihf/release/dual-iir # Sleep to allow flashing, booting, DHCP, MQTT sleep 30 @@ -30,6 +30,3 @@ ping -c 5 -w 20 stabilizer-hitl python3 miniconf.py dt/sinara/dual-iir/04-91-62-d9-7e-5f afe/0='"G2"' python3 miniconf.py dt/sinara/dual-iir/04-91-62-d9-7e-5f afe/0='"G1"' iir_ch/0/0=\ '{"y_min": -32767, "y_max": 32767, "y_offset": 0, "ba": [1.0, 0, 0, 0, 0]}' - -kill $(jobs -p) -wait || true From 044d51d1841cabd3a2ed176bbc4703aeca48150f Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Tue, 22 Jun 2021 09:52:56 +0200 Subject: [PATCH 2/2] Utilize cargo-flash --- hitl/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hitl/run.sh b/hitl/run.sh index 231eed3..739b6ed 100755 --- a/hitl/run.sh +++ b/hitl/run.sh @@ -15,7 +15,7 @@ python3 -m venv --system-site-packages py . py/bin/activate python3 -m pip install -r requirements.txt -cargo embed --bin target/thumbv7em-none-eabihf/release/dual-iir +cargo flash --chip STM32H743ZITx --elf target/thumbv7em-none-eabihf/release/dual-iir # Sleep to allow flashing, booting, DHCP, MQTT sleep 30