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
  • To generate the zip file I put in the same folder blinky_pca10040_s132.hex, nrfutil.exe and private.key and execute the next command: nrfutil.exe pkg generate --hw-version 52 --application-version 1 --application blinky_pca10040_s132.hex --sd-req 0x9D --key-file private.key blinky_SD.zip.

    The console outputs: zip created at blinky_SD.zip.

    Afterwards I upload this zip file to my phone. I used to use AirDroid, but in my last try I used my email.

    Finally I use either nRF Connect or nRF Toolbox to upload the application through DFU proccess. But the blinky application never runs. Again it reaches the 100% in the upload proccess in both programs.

Reply
  • To generate the zip file I put in the same folder blinky_pca10040_s132.hex, nrfutil.exe and private.key and execute the next command: nrfutil.exe pkg generate --hw-version 52 --application-version 1 --application blinky_pca10040_s132.hex --sd-req 0x9D --key-file private.key blinky_SD.zip.

    The console outputs: zip created at blinky_SD.zip.

    Afterwards I upload this zip file to my phone. I used to use AirDroid, but in my last try I used my email.

    Finally I use either nRF Connect or nRF Toolbox to upload the application through DFU proccess. But the blinky application never runs. Again it reaches the 100% in the upload proccess in both programs.

Children
No Data
Related