This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU example doesn't work. need explain step by step

Hi!

nRF52. S132, SDK13.

I try to use ble_dfu_send_hex example.

  1. what shoul I do first? via nrf gostudio load SD. correct?

Which SD? from this folder (dfu_test_softdevice_s132) Or usual SD (s132_nrf52_4.0.2_softdevice)

  1. what should I do next?
Parents
  • Hi Mikhail,

    Please follow the documentation on inforcenter, you can also follow my step by step guide here.

  • Hi Mikhail,

    The buttonless project is simply a showcase how you enter the bootloader by a command via BLE instead of press a button and trigger a reset. Basically what it does is to wait for the command on a characteristic (DFU service) and when there is a write command it will write to bootloader setting in flash a flag and then trigger a reset. After that the bootloader when booting up will check the flag and enter DFU mode.

    You need to include ble_dfu.c into your project and implement that dfu service in your application. You need to init it and also add the ble_dfu_on_ble_evt() into ble_evt_dispatch() as normal service.

    There is nothing about keys here so you don't need public_key.c

    Note that you need both the bootloader and the buttonless dfu, they are not the same.

Reply
  • Hi Mikhail,

    The buttonless project is simply a showcase how you enter the bootloader by a command via BLE instead of press a button and trigger a reset. Basically what it does is to wait for the command on a characteristic (DFU service) and when there is a write command it will write to bootloader setting in flash a flag and then trigger a reset. After that the bootloader when booting up will check the flag and enter DFU mode.

    You need to include ble_dfu.c into your project and implement that dfu service in your application. You need to init it and also add the ble_dfu_on_ble_evt() into ble_evt_dispatch() as normal service.

    There is nothing about keys here so you don't need public_key.c

    Note that you need both the bootloader and the buttonless dfu, they are not the same.

Children
No Data
Related