MCUboot with sysbuild does not compile for anything but DK

I'm playing a bit with MCU boot and folowed the tuturial. When I compile the sample with mcuboot from Zephyr, it works fine for the 52840DK, but when I try to compile for the 52840 dongle or the XIAO ble (also 52840) I get errors. What is going on and how do I continue? I first used sdk/toolchain 2.8.0. I upgraded to 2.9.1, but have the same issue. The project is almost completely empty and I did not add anything to it.

XIAO:

XIAO terminal, when just generating build configuration using sysbuild:

DONGLE:

Parents
  • Hi,

    Both of these dongles have their own built in bootloader. For the nRF52840 dongle you have the nrf5 Bootloader, and the XIAO ble dongle has its own bootloader as well. This means that when you build a sample with MCUBoot you will try to build something that will place the new bootloader on top of the built in bootloader.

    See https://docs.zephyrproject.org/latest/boards/nordic/nrf52840dongle/doc/index.html and https://docs.zephyrproject.org/latest/boards/seeed/xiao_ble/doc/index.html under Bootloader and Uf2

    Kind regards,
    Andreas

  • Thanks for the info, but I'm aware both have their own bootloader. I just want to change it to mcuboot (only), but I cannot even compile using one of these boards as target.

  • Hi again,

    The links I posted have some documentation for how to handle that, for instance: https://docs.zephyrproject.org/latest/boards/nordic/nrf52840dongle/doc/index.html#option-2-using-mcuboot-in-serial-recovery-mode 

    Kind regards,
    Andreas

  • No, the application won't build with this prj.conf:

    The generated partitions.yml still contains nrf5_mbr:

    Build complains flash doesn't fit (obviously)

    This thread also covers it a bit. So I guess I have to manually edit all the partition locations in pm.yml?

Reply
  • No, the application won't build with this prj.conf:

    The generated partitions.yml still contains nrf5_mbr:

    Build complains flash doesn't fit (obviously)

    This thread also covers it a bit. So I guess I have to manually edit all the partition locations in pm.yml?

Children