DFU MESH on nRF52832

There is a tutorial that shows the user how to create a DFU update on mesh by sending a binky sketch over 

Link:  https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_dfu_configuring_performing.html

nrfutil dfu genpkg --application bin/blinky/blinky_nrf52832_xxAA_s132_7.2.0.hex --company-id 0x00000059 --application-id 1 --application-version 2 --key-file private_key.txt --sd-req 0x00CB --mesh dfu_test.zip

Above code is from the tutorial, -sd-req is 0x00CB which is wrong, should be 0x0101 , known issue in the tutorial as 0x00CB is 7.0.1 and 0x0101 is 7.2.0. The Blinky sketch doesn't use soft devices and so the above code will work regardless of the soft device. 

Lets say you want to change Blinky to a different program, what considerations do I need to be aware off? 

1 - the soft devices have to match in this case, all other parameters can match the code above

2 - the size of the new application, how big can the update be?

3 - has anyone tried with other examples? as I am only able to flash Blinky using this tutorial.
           - for example, could I replace the blinky binary with lets say a mesh light switch binary and redo the steps

4 - Location of the update? Do we need to know? or will the DFU example sort that out for us using optimal_bank_address routine

5 - Anything else?

  • Mesh is not supported on the smaller chips because of the Bluetooth Low Energy stack size in combination with the Mesh stack size. It has nothing to do with DFU. Pretend I didn't mention the NCS and external flash in the other reply.

    You can look into adding the SPI flash to the bootloader in the nRF5 SDK for Mesh if you need it. Alternatively, you can DFU to a smaller application in between your main applications. Those are your two options in the nRF5 SDK, as I see it.

    BR,

    Edvin

Related