2019-10-08 09:05:11 +02:00
|
|
|
CPU_ARCH = cortex-m4f
|
2019-10-08 15:26:11 +02:00
|
|
|
CPU_FAM = nrf52
|
2016-02-04 15:30:06 +01:00
|
|
|
|
2019-05-13 16:08:54 +02:00
|
|
|
# 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.
|
|
|
|
RIOTBOOT_LEN ?= 0x2000
|
|
|
|
|
2017-07-03 14:27:22 +02:00
|
|
|
# Export internal ROM alignment and slot sizes for bootloader support
|
2018-02-06 16:41:48 +01:00
|
|
|
export MCUBOOT_IMAGE_ALIGN = 8
|
|
|
|
export MCUBOOT_SLOT0_SIZE = 0x8000
|
|
|
|
export MCUBOOT_SLOT1_SIZE = 0x3C000
|
|
|
|
export MCUBOOT_SLOT2_SIZE = 0x3C000
|
2017-07-03 14:27:22 +02:00
|
|
|
|
2019-03-07 14:27:45 +01:00
|
|
|
# Set ROM and RAM lengths according to CPU model
|
|
|
|
ifneq (,$(filter nrf52832xxaa,$(CPU_MODEL)))
|
|
|
|
ROM_LEN ?= 0x80000
|
|
|
|
RAM_LEN ?= 0x10000
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter nrf52840xxaa,$(CPU_MODEL)))
|
|
|
|
ROM_LEN ?= 0x100000
|
|
|
|
RAM_LEN ?= 0x40000
|
|
|
|
endif
|
|
|
|
|
|
|
|
ROM_START_ADDR ?= 0x00000000
|
|
|
|
RAM_START_ADDR ?= 0x20000000
|
|
|
|
|
|
|
|
LINKER_SCRIPT ?= cortexm.ld
|
|
|
|
|
2016-02-07 12:55:42 +01:00
|
|
|
include $(RIOTCPU)/nrf5x_common/Makefile.include
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|