Skip to content

Commit

Permalink
cpu/nrf52: set RIOTBOOT_LEN to 8k
Browse files Browse the repository at this point in the history
 - nrf52 flash page is 4k, the bootloader needs to be x2 so slots
  start at the beginning of a page.
  • Loading branch information
fjmolinas committed May 13, 2019
1 parent cd0ab4a commit de5d2ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpu/nrf52/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
export CPU_ARCH = cortex-m4f
export CPU_FAM = nrf52

# 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

# Export internal ROM alignment and slot sizes for bootloader support
export MCUBOOT_IMAGE_ALIGN = 8
export MCUBOOT_SLOT0_SIZE = 0x8000
Expand Down

0 comments on commit de5d2ff

Please sign in to comment.