diff --git a/radio/src/bootloader/boot.cpp b/radio/src/bootloader/boot.cpp index c2e2c92362..4d7181452f 100644 --- a/radio/src/bootloader/boot.cpp +++ b/radio/src/bootloader/boot.cpp @@ -67,7 +67,7 @@ #include "../translations/en.h" #if defined(PCBTARANIS) - #define BOOTLOADER_TITLE " OpenTX Boot Loader v1.0" + #define BOOTLOADER_TITLE "Taranis Boot Loader - v1.0" #define BOOT_KEY_UP KEY_PLUS #define BOOT_KEY_DOWN KEY_MINUS #define BOOT_KEY_LEFT KEY_MENU @@ -76,7 +76,7 @@ #define BOOT_KEY_EXIT KEY_EXIT #define DISPLAY_CHAR_WIDTH 35 #elif defined(PCBSKY9X) - #define BOOTLOADER_TITLE "Boot Loader - Sky9x" + #define BOOTLOADER_TITLE "Sky9x Boot Loader - v1.0" #endif // states @@ -91,6 +91,10 @@ enum BootLoaderStates { ST_FLASH_DONE, ST_USB, ST_REBOOT, + +const uint8_t bootloaderVersion[] __attribute__ ((section(".version"))) = +{ + 'B', 'O', 'O', 'T', '1', '0' }; /*---------------------------------------------------------------------------- diff --git a/radio/src/targets/taranis/stm32_ramBoot.ld b/radio/src/targets/taranis/stm32_ramBoot.ld index d8a0b2e1f4..c8204c5eca 100644 --- a/radio/src/targets/taranis/stm32_ramBoot.ld +++ b/radio/src/targets/taranis/stm32_ramBoot.ld @@ -42,8 +42,10 @@ SECTIONS /* The program code and other data goes into FLASH */ .text : { - . = ALIGN(4); + . = ALIGN(4); KEEP(*(.isr_vector)) /* Startup code */ + *(.version) + . = ALIGN(4); /* Align the start of the text part */ *(.text) /* .text sections (code) */ *(.text*) /* .text* sections (code) */ *(.rodata) /* .rodata sections (constants, strings, etc.) */