From c6bae0b4bf0ecae281be4ef6d5623ff8ca6ff37f Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 19 Oct 2022 01:49:21 +0200 Subject: [PATCH] cpu/efm32: increase RIOTBOOT_LEN for riotboot_dfu --- cpu/efm32/Makefile.include | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpu/efm32/Makefile.include b/cpu/efm32/Makefile.include index 3da96e6880..54c4753fcb 100644 --- a/cpu/efm32/Makefile.include +++ b/cpu/efm32/Makefile.include @@ -16,7 +16,11 @@ ifeq (,$(EFM32_HEADER)) endif # the size of riotboot on the EFM32 exceeds the default value -RIOTBOOT_LEN ?= 0x2000 +ifneq (,$(filter periph_usbdev,$(USEMODULE))) + RIOTBOOT_LEN ?= 0x4000 +else + RIOTBOOT_LEN ?= 0x2000 +endif # the em_device.h header requires a global define with the cpu model CFLAGS += -D$(call uppercase_and_underscore,$(CPU_MODEL))