cpu/cortexm_common: increase RIOTBOOT_LEN size when usbus_dfu is used
This commit is contained in:
parent
669a8ec7b3
commit
9d02efb4ea
@ -70,8 +70,12 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Configure riotboot bootloader and slot lengths
|
# Configure riotboot bootloader and slot lengths
|
||||||
# 4KB are currently enough
|
# 4KB are currently enough, set it to 16KB if USB-DFU is used
|
||||||
RIOTBOOT_LEN ?= 0x1000
|
ifneq (,$(filter usbus_dfu,$(USEMODULE)))
|
||||||
|
RIOTBOOT_LEN ?= 0x4000
|
||||||
|
else
|
||||||
|
RIOTBOOT_LEN ?= 0x1000
|
||||||
|
endif
|
||||||
# Currently 2 slots are supported by default, equals in length
|
# Currently 2 slots are supported by default, equals in length
|
||||||
NUM_SLOTS ?= 2
|
NUM_SLOTS ?= 2
|
||||||
# Take the whole flash minus RIOTBOOT_LEN and divide it by NUM_SLOTS
|
# Take the whole flash minus RIOTBOOT_LEN and divide it by NUM_SLOTS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user