How to include buttonless DFU in existing SES Project

Hello,

I would like to add buttonless DFU to my project.

This is so that in the field our mobile application will be able to push new FW to the device upon connection.

I am using a BMD-350 which is based on the nRF52832.

Using NRF 15.3.0 and Segger Embedded Studio

I have got the secure_dfu example working on an eval board.

However, I am wondering how to add the bootloader to the project? Is it added as a part of the SES project, or is something similar to the secure_dfu example flashed before the FW is flashed?

I've read over https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fsdk_app_serial_dfu_bootloader.html
and it says that the secure_bootloader needs to be programmed. Does this mean it is a separate project that is flashed before flashing other SW is programmed?

Any help would be appreciated.

Parents Reply
  • That makes sense.

    ble_dfu_buttonless_init() adds the buttonless DFU service, increasing the SoftDevice memory usage. If the application start address is too low or the SoftDevice configuration is not appropriate, you will get this error (see this thread).

    (As a side note in case other come across this thread, NRF_ERROR_NO_MEM is also returned from ble_dfu_buttonless_init() when there is no bootloader present. And in that case you need to program the bootloader in order to avoid this.)

Children
No Data
Related