From e7d11ca8a6e28947845db2498a6344c27ce0cc98 Mon Sep 17 00:00:00 2001
From: Luca Conterio <luca.conterio@skywarder.eu>
Date: Wed, 15 Sep 2021 10:43:43 +0200
Subject: [PATCH] [scripts] updated scripts for final binaries

---
 scripts/flash-calibration-entry.sh | 2 +-
 scripts/flash-entry-hil.sh         | 3 +++
 scripts/flash-entry.sh             | 2 +-
 scripts/flash-ramtest.sh           | 2 +-
 scripts/flash-testsuite.sh         | 3 +++
 5 files changed, 9 insertions(+), 3 deletions(-)
 create mode 100755 scripts/flash-entry-hil.sh
 create mode 100755 scripts/flash-testsuite.sh

diff --git a/scripts/flash-calibration-entry.sh b/scripts/flash-calibration-entry.sh
index f6f85e49d..bb1f0be53 100755
--- a/scripts/flash-calibration-entry.sh
+++ b/scripts/flash-calibration-entry.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-st-flash write bin_delivery/lynx/final/calibration-entry.bin 0x8000000
+st-flash --reset write bin_delivery/lynx/final/calibration-entry.bin 0x8000000
diff --git a/scripts/flash-entry-hil.sh b/scripts/flash-entry-hil.sh
new file mode 100755
index 000000000..a8434dfa5
--- /dev/null
+++ b/scripts/flash-entry-hil.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+st-flash --reset write bin_delivery/lynx/final/death-stack-x-hil-entry.bin 0x8000000
diff --git a/scripts/flash-entry.sh b/scripts/flash-entry.sh
index 9c62109a6..1149c2a6e 100755
--- a/scripts/flash-entry.sh
+++ b/scripts/flash-entry.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-st-flash write bin_delivery/lynx/final/death-stack-x-entry.bin 0x8000000
+st-flash --reset write bin_delivery/lynx/final/death-stack-x-entry.bin 0x8000000
diff --git a/scripts/flash-ramtest.sh b/scripts/flash-ramtest.sh
index ed26dd8b4..136960675 100755
--- a/scripts/flash-ramtest.sh
+++ b/scripts/flash-ramtest.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-st-flash write bin_delivery/lynx/final/ramtest.bin 0x8000000
+st-flash --reset write bin_delivery/lynx/final/ramtest.bin 0x8000000
diff --git a/scripts/flash-testsuite.sh b/scripts/flash-testsuite.sh
new file mode 100755
index 000000000..bed7c3eb2
--- /dev/null
+++ b/scripts/flash-testsuite.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+st-flash --reset write bin_delivery/lynx/final/death-stack-x-testsuite.bin 0x8000000
-- 
GitLab