This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr with MCUboot and Simple Management Protocol (SMP)

Dear community,

i'm working on an application for the nRF52832. I would like to use MCUboot as Bootloader and Zephyr for the main application. The current situation is that i'm using the west tool for buildung and flashing the software. Not sure if it's my fault but the west tool has issues with debugging (that's what im doing with Segger Studio for NRF now). Mainly im working with the examples from ncs (Zephyr + NRF) and with the contributions of the devzone community to figure how things are working - many thanks!

But i'm stuck now: 

  • When i'm uploading the application (currently it is the smp_svr app) and the bootloader the microcontroller can be reset by mcumgr and the 'echo' command works also fine. The upload does not work. Does the application needs to be signed?
  • When i'm uploading only the bootloader it's not possible to communicate with mcumgr. Do i need to setup the smp features for the MCUboot, too?

In both cases i'm using the serial line.

Many thanks in advance!

Kind regards,

Michael

Parents
  • Hello!

    Good to hear that you have progress. As for your questions:

    - Which file are you trying to upload? When building using NCS an image called app_signed.bin app_update.bin is created and signed automatically. You should use this. The file is located in <project_folder>/<build_folder>/zephyr/. 

    - MCUBoot is not setup with mcumgr out of the box, you will have to enable it. Though be aware that the img_mgmt features most likely won't work for the MCUBoot image, as they rely on MCUBoot themselves.

    Best regards,
    Carl Richard

Reply
  • Hello!

    Good to hear that you have progress. As for your questions:

    - Which file are you trying to upload? When building using NCS an image called app_signed.bin app_update.bin is created and signed automatically. You should use this. The file is located in <project_folder>/<build_folder>/zephyr/. 

    - MCUBoot is not setup with mcumgr out of the box, you will have to enable it. Though be aware that the img_mgmt features most likely won't work for the MCUBoot image, as they rely on MCUBoot themselves.

    Best regards,
    Carl Richard

Children
No Data
Related