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 Reply Children
  • 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?

  • Aah, I see, my bad for being a bit too quick

    Yes, Einar knows his stuff, specially w.r.t nrf5. Could you let me know if the suggestions made in  Partitions for custom boards with SDK 2.8.0 and sysbuild works for you if you follow the suggestions there?

    Kind regards,
    Andreas

  • No, I tried but I believe I do not understand how to alter the pm.yml file (or should it be pm_static.yml?) to obtain static partitions.