kinetis/Makefile.include: set RIOTBOOT_HDR_LEN to 0x200 for KW2XD
- Minimum required RIOBOOT_HDR_LEN or kW2xD is 0x200 to respect vector table alignment
This commit is contained in:
parent
35e083a94c
commit
4ca815445d
@ -4,6 +4,14 @@ ifeq (,$(KINETIS_SERIES))
|
|||||||
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/kinetis-info.mk
|
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/kinetis-info.mk
|
||||||
endif
|
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
|
# Add search path for linker scripts
|
||||||
LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts
|
LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user