This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52 DK Failed to add BLE OTA DFU to the example project ble_app_uart

Hi, I'm using nRF52 DK. I'm following tutorial links 1, and 3 to learn how to add BLE OTA DFU to the example project ble_app_uart. 

Step 1

Following the above links, I created a new project called 1325.ble_app_uart_dfu.zip, which contains ble_app_uart and BLE OTA DFU functions. 

Step 2

build the \examples\ble_peripheral\ble_app_buttonless_dfu code to get the "ble_app_buttonless_dfu.hex"
build the \example\dfu\secure_bootloader code to get the "bootloader.hex"
build the our own application code to get the "ble_uart_ota.hex"

Step 3

In win10 cmd, use the following commands: 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
nrfutil settings generate --family NRF52 --application ble_app_buttonless_dfu.hex --application-version 3 --bootloader-version 2 --bl-settings-version 2 settings.hex
nrfjprog --eraseall -f NRF52
nrfjprog --program s132_nrf52_7.2.0_softdevice.hex --verify -f NRF52
nrfjprog --program ble_app_buttonless_dfu.hex --verify -f NRF52
nrfjprog --program bootloader.hex --verify -f NRF52
nrfjprog --program settings.hex --verify -f NRF52
nrfjprog --reset -f NRF52
nrfutil pkg generate --application ble_uart_ota.hex --application-version 4 --hw-version 52 --sd-req 0x0101 --key-file priv.pem ble_uart_ota.zip
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

All files are 20211006 BLE OTA UART EXAMPLE.zip

Step 4

Now, on my mobile app nRF Connect, I could see a BLE signal named Nordic_Buttonless. I connected it and clicked the DFU button on the top right corner. Then, download my own firmware zip file to the nRF52 DK.

Then, I could see Nordic_Buttonless disconnects automatically. A new BLE signal named DFUTARG is connected. After a few seconds, DFUTARG disconnects automatically. Nothing else is connected. My own application BLE signal doesn't exist. 

Does anyone have any idea, please? Thanks a lot!