nRF5340 simultaneous multi image dfu + serial recovery

Hi
Is it possible to configure project to use simultaneous multi image DFU and serial recovery over USB? 
I would like to be able to update both cores using dfu_multi_image_XXX and in case something goes wrong, being able to recover both cores (app + net) using mcumgr command line tool.

Thank you in advance.
Przemek






Parents Reply
  • There is no errors, it seams to be working with one exception. I need to be sure it works by design not by accident. So could you please confirm it is meant to work together?

    I can update app and radio cores from application code:

    dfu_multi_image_init(&multiimageDfuBuffer[0], sizeof(multiimageDfuBuffer));
    writer.image_id = 0;
    dfu_multi_image_register_writer(&writer);
    writer.image_id = 1;
    dfu_multi_image_register_writer(&writer);
    ...

    And from MCUBoot:
    mcumgr -c acm1 image upload  -e -n 0 ./app/zephyr/zephyr.signed.encrypted.bin
    mcumgr -c acm1 image upload ./signed_by_mcuboot_and_b0_ipc_radio.bin -e -n 3


    I do not understand why mcumgr command works with -n 3 where dfu_multi_image use 1.
    Please confirm it is by design not a bug that will be fixed in the next 6 months and I will be not able recover the firmware in the future.
    Thank you.
    Przemek


Children
Related