Building mesh dfu sample for nRF52840 dongle

Hello

I am trying to build  the Zephyr mesh distributor sample on the nRF 52840 dongle

It builds and runs just find on the nRF52840 DK

But when I try to build for the dongle I get a link error the image is too big to fit in the flash and a lot of other warnings

Tried to disable logging to make the image smaller  - no luck

Log below

Please help

Thank you

---------nrf5284dongle-build.zip-----------------------------------

  • Hi,

    Have you looked at our Memory footprint optimization guide? This gives recommendations for how to reduce the memory footprint of your application.

    Best regards,
    Marte

  • Yes. Most of them apply to RAM although some do apply to flash
    Tried several, no luck

    Question

    The distributor sample has the mcuboot bootloader. 
    What happens if I overwrite the Open DFU bootloader that is present on the dongle and just use  the mcuboot to start my app ?
    Any side effects I should be aware of?

  • Hi,

    Using MCUboot only is basically the option "3. Using an External Debug Probe" mentioned earlier in this thread. It does require you to connect with a programmer for the initial programming. After that, further DFU can be done over USB using MCUboot. Please note that any application must then be built for use with MCUboot only, which has implications for memory layout.

    If at some point you want to "factory reset" the dongle into the state it was shipped with from us, then you need to use a programmer in order to get back to the nRF5 based DFU bootloader. Apart from that, if you are happy with using MCUboot, then the Dongle will now work just as any other custom product out in the field.

    Regards,
    Terje

  • My main hurdle now is that the image does not fit - about 7000 bytes short. Suppose I solve that problem and now I have the image that contains mcuboot and my application. If I load it on a dongle using nRF programmer, will my app run? I need mcuboot  because I plan to use the dongle to distribute firmware updates via mesh

Related