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

DFU OTA for Custom Application

Hi,

I have implemented a custom application(Lets name that file app.hex) which works and sends the data to phone via BLE on my nrf51822 DK. I am using the s110 v8 softdevice(Lets name it sd.hex). I followed the tutorial for DFU OTA and compiled the project "dfu_dual_blank_ble_s110_pca10028.uvprojx" to generate the dual blank DFU hex file. (Lets name it dfu.hex) Firstly I erased my development kit IC completely from nRFgo Studio. Programmed the softdevice, sd.hex file on the board. Then I compiled and burned the chip with "dfu_dual_blank_ble_s110_pca10028.uvprojx" directly from my Kiel platform. I was able to detect the "DfuTarg" from the Nordic nRF Toolbox App in phone.

Following the INIT file generation mentioned in the pdf here, I was able to create a zip file(with just the application specs) which I could load onto the phone and reprogram the firmware with app.hex, successfully with the zip file .

So as of now, DFU over BLE was possible for me.

Here is the problem, I cant seem to program app.hex with dfu.hex from the Nordic nRFgo Studio. Here is my current procedure in sequence.

  1. Program the sd.hex from Nordic nRFgo Studio.
  2. Program the dfu.hex from Nordic nRFgo Studio.
  3. Program the app.hex from Nordic nRFgo Studio.

The problem is even after doing all the above steps, the DK is still advertising with the name "DfuTarg" although I have programmed it advertise with a different name in the app.hex (I have verified app.hex separately to see its advertising name and it works correctly)

So my question is how do I burn the app.hex with a dual blank bootloader first time(which can be later reflashed with say app2.hex, although I have figured out this issue of OTA DFU from phone)?

Parents
  • @Alex Thanks again for all the help. I am currently reading through the forums to see if there is someone which had the similar issues. I will give it a try for an hour and see. I will begin a new thread if I dont get anything tangible. The bootloader I am using is one compiled from dfu_dual_blank_ble_s110_pca10028.uvprojx without changing anything. I cant seem to find a compiled bootloader hex file for SD s110, I found the one with s130 only.

    Hopefully once I figure the issue, I would like to write some tutorial for the same, I am pretty sure there others who might have issues creating custom app + DFU.

Reply
  • @Alex Thanks again for all the help. I am currently reading through the forums to see if there is someone which had the similar issues. I will give it a try for an hour and see. I will begin a new thread if I dont get anything tangible. The bootloader I am using is one compiled from dfu_dual_blank_ble_s110_pca10028.uvprojx without changing anything. I cant seem to find a compiled bootloader hex file for SD s110, I found the one with s130 only.

    Hopefully once I figure the issue, I would like to write some tutorial for the same, I am pretty sure there others who might have issues creating custom app + DFU.

Children
No Data
Related