mirror of https://github.com/rusefi/wideband.git
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:
parent
b298389fb5
commit
18c22abdfa
|
@ -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
|
||||
##############################################################################
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue