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

MCUBOOT image is not built with zephyr CONFIG_BOOTLOADER_MCUBOOT=y #150

Open
zapta opened this issue May 22, 2022 · 0 comments
Open

MCUBOOT image is not built with zephyr CONFIG_BOOTLOADER_MCUBOOT=y #150

zapta opened this issue May 22, 2022 · 0 comments

Comments

@zapta
Copy link

zapta commented May 22, 2022

When an nrf52 zephyr project has CONFIG_BOOTLOADER_MCUBOOT=y in it's prj.conf file, the standard (non platformio) zephyr build builds two images, of mcuboot (a 'child image') and of the app respectively as well as a merged image that include both. This is demonstrated by this zephyr nrf52 howto:

https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/device-firmware-update-dfu-with-mcuboot-bootloader

NOTE: to build the Nordic howto, you don't need to deal with the usb_cdc stuff which increase the MCUBOOT's size. Just build as I did using the command

west build -b nrf52dk_nrf52832 --pristine

However, under platformio, only the app is built and the child image of the mcuboot is not. Please make the platformio build of zephyr consistent with zephyr normal build. The MCUBOOT is important but zephyr implementations that allows firmware updates with end user which is an important feature.

The prg.conf I used (similar to the Nordic example above).

CONFIG_GPIO=y
CONFIG_BOOTLOADER_MCUBOOT=y

The platformio.ini I used.

[env:nrf52_dk]
platform = nordicnrf52
board = nrf52_dk
framework = zephyr

Here is a log of a standard non platformio build (based on the Nordic howto for nrf52dk_nrf52832 board) which creates the two images: https://pastebin.com/hTzSDZ4n and here is the list of its files after the build (the generated files are under the blinky/build directory): https://pastebin.com/m2VZJs5p

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

No branches or pull requests

1 participant