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

New application doesn't run after secure DFU process reaches 100%

Hi to everyone!

I'm following this guide to learn how to use secure DFU on a nRF52832DK board.

All steps have been done successfully, or I think so, until I reach the D4 step where the new program has to start automatically after DFU process, but it never runs.

Instead, the LED 3 lights up and If I press the button 4, the LED 1 also lights up and I can resend another application over DFU. So I think the board is still in the bootloader.

Indeed, I have some cuestions related to this:

  1. BLE Secure DFU example is only a boot loader or it also has an application?

  2. Depending on the above answer, if it is only a boot loader, do I have to program an application before doing the DFU proccess?

  3. The application, that will be written after DFU proccess, must use SoftDevice? (For my test, I upload my own blinky program. It works well when I flash the board directly through USB. But it doesn't use SoftDevice at all).

Thanks in advance!

Parents
  • Hi Bjørn Kvaale.

    I take the hex file in the folder: nRF5_SDK_14.0.0_3bcc1f7\examples\peripheral\blinky\hex. Here there are three hex files: one for PCA 10056 and two for PCA 10040. The first one is the blinky without SoftDevice (blinky_pca10040.hex) and the other one is the blinky with SoftDevice (blinky_pca10040_s132.hex). I take the last one because the hex without SoftDevice can not be used to generate the zip file.

    Then:

    1. I erase all in my development board.

    2. Program SoftDevice (I take s132_nrf52_5.0.0_softdevice.hex file from nRF5_SDK_14.0.0_3bcc1f7/components/softdevice/s132/hex/) using nRFgo Studio.

    3. Download the bootloader from Keil (the project is in nRF5_SDK_14.0.0_3bcc1f7\examples\dfu\bootloader_secure_ble\pca10040, but I know I can also program it from nRFgo Studio).

    4. And generate the zip file.

Reply
  • Hi Bjørn Kvaale.

    I take the hex file in the folder: nRF5_SDK_14.0.0_3bcc1f7\examples\peripheral\blinky\hex. Here there are three hex files: one for PCA 10056 and two for PCA 10040. The first one is the blinky without SoftDevice (blinky_pca10040.hex) and the other one is the blinky with SoftDevice (blinky_pca10040_s132.hex). I take the last one because the hex without SoftDevice can not be used to generate the zip file.

    Then:

    1. I erase all in my development board.

    2. Program SoftDevice (I take s132_nrf52_5.0.0_softdevice.hex file from nRF5_SDK_14.0.0_3bcc1f7/components/softdevice/s132/hex/) using nRFgo Studio.

    3. Download the bootloader from Keil (the project is in nRF5_SDK_14.0.0_3bcc1f7\examples\dfu\bootloader_secure_ble\pca10040, but I know I can also program it from nRFgo Studio).

    4. And generate the zip file.

Children
No Data
Related