diff --git a/cpu/kinetis/Makefile.include b/cpu/kinetis/Makefile.include index 7e410c5ff2..969b2df068 100644 --- a/cpu/kinetis/Makefile.include +++ b/cpu/kinetis/Makefile.include @@ -4,6 +4,14 @@ ifeq (,$(KINETIS_SERIES)) include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/kinetis-info.mk endif +# "The Vector table must be naturally aligned to a power of two whose alignment +# value is greater than or equal to number of Exceptions supported x 4" +# CPU_IRQ_NUMOF for KWxD boards is < 81+16 so (81*4 bytes = 388 bytes ~= 0x200) +# RIOTBOOT_HDR_LEN can be set to 0x200 +ifeq (DW, $(KINETIS_CORE)$(KINETIS_SERIES)) + RIOTBOOT_HDR_LEN ?= 0x200 +endif + # Add search path for linker scripts LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts