From cc7afbbb54d2b66cc3a89f2748c85fc632634d1f Mon Sep 17 00:00:00 2001 From: Alex Evans <715855+mmalex@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:01:15 +0000 Subject: 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 --- bootloader/Core/Src/ghostfat.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bootloader/Core/Src') 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[] = // "\n" -- cgit v1.2.3