summaryrefslogtreecommitdiff
path: root/bootloader/Core/Src/ghostfat.c
diff options
context:
space:
mode:
authorAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-07 12:01:15 +0000
committerAlex Evans <715855+mmalex@users.noreply.github.com>2024-11-07 12:01:15 +0000
commitcc7afbbb54d2b66cc3a89f2748c85fc632634d1f (patch)
tree5f5c07c1aa0c6a9cf8dcf3543e68fd4626a8769f /bootloader/Core/Src/ghostfat.c
parent78a4df6ca67f937cda8462d43cbd9547994b6474 (diff)
downloadplinky-cc7afbbb54d2b66cc3a89f2748c85fc632634d1f.tar.gz
work on build tooling to choose a golden bootloader (dubbed, v1.04) and then make a BOOTLOAD.UF2 that actually encompasses latest firmware and the golden bootloader
Diffstat (limited to 'bootloader/Core/Src/ghostfat.c')
-rwxr-xr-xbootloader/Core/Src/ghostfat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bootloader/Core/Src/ghostfat.c b/bootloader/Core/Src/ghostfat.c
index e3a94d6..28ff3e4 100755
--- a/bootloader/Core/Src/ghostfat.c
+++ b/bootloader/Core/Src/ghostfat.c
@@ -76,10 +76,14 @@ struct UF2File {
int size;
};
+#define BOOTLOADER_VERSION "1.04"
+__attribute__((section(".signature"), used)) const char firmware_signature[4] = BOOTLOADER_VERSION;
+
+
const char infoUf2File[] = //
- "UF2 Bootloader v1.0.3 Plinky\r\n"
- "Model: Plinky Synth v1.0.3\r\n"
- "Board-ID: STM32L476-Plinky-103\r\n";
+ "UF2 Bootloader v" BOOTLOADER_VERSION " Plinky\r\n"
+ "Model: Plinky Synth Bootloader v" BOOTLOADER_VERSION "\r\n"
+ "Board-ID: STM32L476-Plinky-v3\r\n";
const char indexFile[] = //
"<!doctype html>\n"