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

How to Firmware Update Over BLE

I am using keil 5, softdevice 132, sdk NRF_SD_BLE_API_VERSION=5, nRF52832.

I am trying to work with firmware update over ble.

In the example folder, there is an example called "buttonless dfu".

I am trying to implement it. But cant succesfull yet.

I am reading here and it is routing me to here to generate settings file.

But about this, every document i read, keep routing me somewhere else and i am confused.

How can i get it work? What should i do?

As i understand, there has to be a settings file for bootloader. Correct? If so, why we need this?

When i first time try that example that gave above, the dev kit told me something like: "error: No bootloader find."

How can i fix this issue?

Edit: I followed here step by step and i realized i dont how the bootloader.

What should i do?

Edit: Do i need write bootloader? Is not it in the sdk files?

I have also tried to work bootloader_secure_ble example. It worked fine (i saw duftar device on the mobile app).

BTW. When i load bootloader_secure_ble example, uicr->nrffw[0] and nrffw[1] registers value changes to different than 0xFFFFFFFFF.

When i reload my program to the flash, my program freeze and not response. When i debug it, i saw that stops int the nrf_dfu_svci.c file nrf_dfu_svci_vector_table_set function.

I realy dont know what to do.

What am i missing?

Related