1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

Merge pull request #11562 from fjmolinas/pr_kinetis_riotboot_frdm_kw41z

boards/frdm-kw41z-k64f: add riotboot
This commit is contained in:
Gaëtan Harter 2019-06-07 19:49:08 +02:00 committed by GitHub
commit 632da8ae0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View File

@ -5,4 +5,7 @@ FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
include $(RIOTCPU)/kinetis/Makefile.features

View File

@ -8,6 +8,9 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
# The board MPU family (used for grouping by the CI system)
FEATURES_MCU_GROUP = cortex_m4_1

View File

@ -6,12 +6,19 @@ 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)
# CPU_IRQ_NUMOF for KWxD and KxF boards is < 102+16 so (81*4 bytes = 472 bytes ~= 0x200)
# RIOTBOOT_HDR_LEN can be set to 0x200
ifeq (DW, $(KINETIS_CORE)$(KINETIS_SERIES))
ifneq (,$(filter FK DW,$(KINETIS_CORE)$(KINETIS_SERIES)))
RIOTBOOT_HDR_LEN ?= 0x200
endif
# Slot size is determined by "((total_flash_size - RIOTBOOT_LEN) / 2)".
# If RIOTBOOT_LEN uses an uneven number of flashpages, the remainder of the
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
ifeq (K, $(KINETIS_SERIES))
RIOTBOOT_LEN ?= 0x2000
endif
# Add search path for linker scripts
LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts