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

application that uploaded with dfu not run (sdk12.2.0, bootloader_secure(debug), s130, nrf51822)

i faced with a problem :

  1. i created a private key
  2. then make public key from private key
  3. insert my public key in dfu_public_key.c
  4. build bootloader_secure(debug) project
  5. programmed softdevice 2.0.1 and bootloader (.hex) on nrf51822 (QxxAC)
  6. i created my .zip file from my application(it's work okay) and private key
  7. my nrf51822 go to bootloader mode ( addvertise "DfuTarg") ( i can see it)
  8. i uploaded my .zip on nrf51822 ( done successfully)

after these steps my nrf51822 stay in bootloader mode and doesn't run my application that i uploaded on it.

  • Can you post the command you used to generate the zip package? Are you using the nRF Connect or nRF Toolbox to perform DFU? iOS or Android?

    1. $ nrfutil pkg generate --debug-mode --application test.hex --key-file pv.pem test_V1.0.zip
    2. nRF Connect
    3. Android
  • Can you readout the dfu settings flash page using the following nrfjprog command

    nrfjprog -f nrf52 --memrd 0x7F000 --n 256
    

    and post the output in a comment?

  • command :

    nrfjprog -f nrf51 --memrd 0x7f000 --n 256
    

    output :

    0x0007F000: 00000000 00000000 00000000 00000000   |................|
    0x0007F010: 00000000 00000000 00000000 00000000   |................|
    0x0007F020: 00000000 00000000 00000000 00000000   |................|
    0x0007F030: 00000000 00000000 00000000 00000000   |................|
    0x0007F040: 00000000 00000000 00000000 00000000   |................|
    0x0007F050: 00000000 00000000 00000000 00000000   |................|
    0x0007F060: 00000000 00000000 00000000 00000000   |................|
    0x0007F070: 00000000 00000000 00000000 00000000   |................|
    0x0007F080: 00000000 00000000 00000000 00000000   |................|
    0x0007F090: 00000000 00000000 00000000 00000000   |................|
    0x0007F0A0: 00000000 00000000 00000000 00000000   |................|
    0x0007F0B0: 00000000 00000000 00000000 00000000   |................|
    0x0007F0C0: 00000000 00000000 00000000 00000000   |................|
    0x0007F0D0: 00000000 00000000 00000000 00000000   |................|
    0x0007F0E0: 00000000 00000000 00000000 00000000   |................|
    0x0007F0F0: 00000000 00000000 00000000 00000000   |................|
    
  • If the DFU process was successful, then the word at 0x7F020 should be set to 0x00000001. Can you try to generate a package with the following command

    nrfutil pkg generate --application <name of application>.hex --application-version 3 --hw-version 52 --sd-req 0x88 --key-file <private key>.pem <name of zip>.zip
    
Related