From 0273a66a2d5a7ca73827d87d636bf63a39d4aa21 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 f6f85e49..bb1f0be5 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 00000000..a8434dfa
--- /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 9c62109a..1149c2a6 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 ed26dd8b..13696067 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 00000000..bed7c3eb
--- /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