platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
394 stars 308 forks source link

How to use mcuboot with zephyr framework #733

Closed kaizoku-oh closed 1 year ago

kaizoku-oh commented 1 year ago

Greetings everyone,

Since the zephyr framework was recently updated to the latest zephyr v3.4.0, I was wondering if mcuboot is supported and if so, how can we use it in PlatformIO, ie: build the bootloader image, flash it, sign the primary image... Also can mcumgr cli utility be used within PlatformIO.

I'd be glad to contribute documentation and examples for this use case, so if there is any information on this issue please feel free to point me in the right direction.

Best Regards Bayrem

valeros commented 1 year ago

Hi @kaizoku-oh, MCUboot is a Zephyr project so it can be compiled using PlatformIO although some specific settings should be added to platformio.ini and several modifications of CMake files are required. Signing functionality is also available, some examples can be found here https://github.com/platformio/platform-ststm32/tree/feature/z3imp/examples/zephyr-mcuboot

Please note that it's issue tracker, not a discussion forum. We have a separate place for such questions https://community.platformio.org/