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

BLE DFU Extension Issue

Hi,

I have added "DFU" functionality to my existing BLE application Test.rar.

"I am using nrf52 SDK v11.0".

I have programmed the device with softdevices (S132.hex) and application and it doesn't work. I am sure I have something wrong but don't know where....

At line 991 in the main.c where I have defined "reset_prepare" function to enter dfu mode.

Also, do I have to load bootloader file? If so where can I find "Bootloader.hex"?

If I am using bootloader do I still have to load softdevices?

It would be great if anyone can advise on this.

Regards Siva

Parents
  • The problem in my application is at line 1146 where "service_init()" had been defined. In this function I have added DFU functions which causing the problem. If I remove the dfu functionality it works as usual.

    I think the problem is, I am not placing the dfu functions in the correct location. Here are the locations where I have defined dfu parameters/functions.

    Parameters --> from Lines 53 to 74 Functions --> 1. advertising_stop------line 79 2. reset_prepare---------line 97 3. Service Initialization------line578 4. BLE stack events-----------line755 5. BLE_Support----------------line786 6. Calling reset_prepare-----line987

    Are the above declarations correct?

Reply
  • The problem in my application is at line 1146 where "service_init()" had been defined. In this function I have added DFU functions which causing the problem. If I remove the dfu functionality it works as usual.

    I think the problem is, I am not placing the dfu functions in the correct location. Here are the locations where I have defined dfu parameters/functions.

    Parameters --> from Lines 53 to 74 Functions --> 1. advertising_stop------line 79 2. reset_prepare---------line 97 3. Service Initialization------line578 4. BLE stack events-----------line755 5. BLE_Support----------------line786 6. Calling reset_prepare-----line987

    Are the above declarations correct?

Children
No Data
Related