building mcuboot as a separate .hex / .bin file

Hi,

I am to understand that mcuboot & application are built in a single .hex file generated in build folder.
I need to compile mcuboot separately & not as a part of firmware file.

Kindly suggest how to do this & what are the dependencies that will have to be managed to compile mcuboot independently.

Thanks,

Parents
  • Hi

    The MCUBoot child image build can be found in the folder build/mcuboot.
    The hex file for only mcuboot is therefore located at build/mcuboot/zephyr/zephyr.hex.

    Is this what you were looking for?

    Regards,
    Sigurd Hellesvik

  • Hello ,

    Thanks, Actually this is what I was looking at.


    In the attached project I am building DFU sample app provided by nordic for BL653: devzone.nordicsemi.com/.../ncs-dfu

    I have 4 more questions:


    1. In this project, at path "peripheral_lbs_BL653\build\zephyr", I am to understand that application build file is present at this location, Does this application build file have mcuboot code as well.?

    2. At the path "peripheral_lbs_BL653\build\mcuboot\zephyr", I am to understand that mcuboot build file is present as you said..?

    build/mcuboot/zephyr/zephyr.hex

    3. mcuboot zephyr.hex is being generated separately at the aforementioned path, Is it getting integrated into the application build file at path "peripheral_lbs_BL653\build\zephyr"...?

    4. How can I flash this mcuboot build file found at the path "peripheral_lbs_BL653\build\mcuboot\zephyr" separately into the board..?

    Thanks,

    Ubaid

  • Hi

    The merged.hex file is the file referenced in Multi-image builds, Default configuration:
    "When building the child image from the source or using a prebuilt HEX file, the build system merges the HEX files of both the parent and child image, so that they can be programmed in one single step. This means that you can enable and integrate an additional image just by using the default configuration."

    So:

    build/zephyr/zephyr.hex: only application

    build/mcuboot/zephyr/zephyr.hex: only mcuboot

    build/zephyr/merged.hex: mcuboot+application

    The "west flash" command will flash "build/zephyr/merged.hex" for multi-image builds, and "build/zephyr/zephyr.hex" for single image builds.

    For images used for MCUBoot, see Using MCUboot in nRF Connect SDK.

    Regards,
    Sigurd Hellesvik

Reply
  • Hi

    The merged.hex file is the file referenced in Multi-image builds, Default configuration:
    "When building the child image from the source or using a prebuilt HEX file, the build system merges the HEX files of both the parent and child image, so that they can be programmed in one single step. This means that you can enable and integrate an additional image just by using the default configuration."

    So:

    build/zephyr/zephyr.hex: only application

    build/mcuboot/zephyr/zephyr.hex: only mcuboot

    build/zephyr/merged.hex: mcuboot+application

    The "west flash" command will flash "build/zephyr/merged.hex" for multi-image builds, and "build/zephyr/zephyr.hex" for single image builds.

    For images used for MCUBoot, see Using MCUboot in nRF Connect SDK.

    Regards,
    Sigurd Hellesvik

Children
Related