Skip to content

Commit 09e95a0

Browse files
Add encryption support, start updating README
1 parent 36a8819 commit 09e95a0

7 files changed

+899
-119
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ project(mbed-mcuboot-bootloader)
1111

1212
set(MBED_MCUBOOT_BOOTLOADER_SOURCES
1313
secondary_bd.cpp
14-
enc_key.c
1514
shared_data.c)
1615

1716
# Compile mcuboot sources

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Go to the [mcuboot repository](https://github.com/mcu-tools/mcuboot) for more in
99

1010
## Memory Regions Overview
1111

12-
The diagram below shows the default memory map configuration used for this mcuboot demo on the nRF52840. The nRF52840 has a total of 1MB of internal program flash. The following sections detail how the bounds of each memory region is configured.
12+
The diagram below shows the various memory regions used by mcuboot and your application. The following sections detail how the bounds of each memory region is configured.
1313

14-
![nRF52840-mcuboot-map](assets/nRF52840-mcuboot-map.png)
14+
![mcuboot region map](assets/generic-memory-diagram.png)
1515

1616
### Bootloader
1717
The bootloader (the application in this repository) lives in the first region of flash where the processor begins execution. The basic mcuboot bootloader does not implement any interfaces to receive updates. It simply looks at available application "slots". The application (or another bootloader) is responsible for loading application updates into a slot visible to the mcuboot bootloader. Update candidates are typically placed in the "secondary" flash region.
1818

19-
The bootloader has a maximum size set by `target.restrict_size`. In this example the bootloader is restricted to a size of `0x20000` bytes. This is way larger than required but allows the bootloader to be built with a debug profile during development. In production the bootloader size should be optimized based on your use case.
19+
The bootloader has a maximum size set by `target.restrict_size`. In this example the bootloader is restricted to a size of `0x20000` bytes (128kiB). This is way larger than required but allows the bootloader to be built with a debug profile during development. In production the bootloader size should be optimized based on your use case. If encryption is not used and debugging is disabled, the bootloader should be able to fit in a 64kiB region, but with encryption and/or debugging active, the needed size increases.
2020

2121
Upon bootup, mcuboot looks at two memory regions, one called the "primary slot" and the other called the "secondary slot", to determine if a firmware update is available and should be installed.
2222

assets/generic-memory-diagram.png

302 KB
Loading

0 commit comments

Comments
 (0)