Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake support #15

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

sudotensor
Copy link

@sudotensor sudotensor commented Sep 20, 2021

As mentioned in mcu-tools/mcuboot#1153,

"Currently, MbedOS applications using this port require that they are built with the old mbed-cli. However, mbed-tools is the new, future command-line tool for MbedOS; mbed-tools is also known as Mbed CLI 2. This new tool makes use of "Ninja as a build system, and CMake to generate the build environment and manage the build process in a compiler-independent manner." More information can be found here."

A CMakeLists.txt was added as a result; the mcuboot.lib now points to this fork. This pull request has a companion pull request in the mbed-mcuboot-blinky application repository; both are required for the full mbed-tools build workflow.

Note: This pull requests builds on the changes from #13.

@LDong-Arm

LDong-Arm and others added 8 commits August 24, 2021 15:52
Mbed OS builds .bin images by default for most targets, but many
targets (e.g. ST targets running the latest ST-LINK firmware) also
support .hex files, making this demo much easier to prepare. In
case a target doesn't support .hex files, README.md already contains
steps for merging .hex files into a single one and converting it to
a .bin file.
The majority of flash devices support reading single bytes without
alignment concerns. The config `mcuboot.read-granularity` enables
additional code to handle read alignment, and it comes with a slight
code size and performance overhead.
This matches the responding change in mbed-mcuboot-blinky.
The latest Mbed OS already has `qspif.QSPI_MIN_PROG_SIZE` set to 4
for MCU_NRF52840 which is the base target of NRF52840_DK and EP_AGORA.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants