bootloader: make bootloader flash area reserve optional (#111)

* bootloader: make bootloader flash area reserve optional

and increase config flash area to 8K

* f1_rev2: empty blflash section
This commit is contained in:
Andrey G 2022-07-15 10:07:41 +03:00 committed by GitHub
parent b298389fb5
commit 18c22abdfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -210,6 +210,11 @@ ifeq ($(USE_BOOTLOADER),yes)
USE_OPT += -Wl,--defsym=USE_BOOTLOADER=1
endif
ifeq ($(USE_OPENBLT),yes)
# Reserve start of flash for OpenBLT
USE_OPT += -Wl,--defsym=USE_BOOTLOADER=1
endif
#
# End of user section
##############################################################################

View File

@ -4,9 +4,10 @@
MEMORY
{
/* 8k reserved for bootloader */
appflash (rx) : org = 0x08000000 + 8k, len = 128k - 1k - 8k
configflash (rx) : org = 0x08000000 + 128k - 1k, len = 1k
/* empty section to keep linker happy */
blflash (rx) : org = 0x08000000, len = 0
appflash (rx) : org = DEFINED(USE_BOOTLOADER) ? (0x08000000 + 8k) : 0x08000000, len = DEFINED(USE_BOOTLOADER) ? (128k - 8k - 8k) : (128k - 8k)
configflash (rx) : org = 0x08000000 + 128k - 8k, len = 8k
flash1 (rx) : org = 0x00000000, len = 0
flash2 (rx) : org = 0x00000000, len = 0
flash3 (rx) : org = 0x00000000, len = 0