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

Dfu secure serial bootloader not working.

The following steps i used to Flash my nrf52 DK with DFu Serial secure.

  1. Downloaded and installed a)nrf5_SDK_13.0.0 b)nrfgo Studio c) keilv5 d)Python 2.7.9 e) pip f) nrfutil

  2. next I compiled the experimental_DFU_secure_serial from examples in 13.0.0SDK and got Errors in Micro_ecc.h compilation. I later was able to compile the library and generate private.key and public key.

  3. i generated the private.key and then corresponding public_key, saved private key on my PC and replaced the dfu_ public_key.c (that came in d example as Default) with my new public_key.

  4. now i compiled without any Errors and was able to get the nrf52832_xxaa.hex file for the Bootloader Code

  5. I then generated bootloader Settings nrfutil settings generate --family NRF52 --application C:\Users\ParthibanK\Downloads\nRF5_SDK_13.0.0_04a0bfd\examples\peripheral\blinky\pca10040\s132\arm5_no_packs_build\nrf52832_xxaa.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 C:\Users\ParthibanK\Documents\Bootloader_settings2.hex

6)I then merged bootloader Settings and nrf52832_xxaa.hex

C:\Windows\system32>mergehex --merge C:\Users\ParthibanK\Documents\Bootloader_settings2.hex C:\Users\ParthibanK\Downloads\nRF5_SDK_13.0.0_04a0bfd\examples\dfu\experimental_bootloader_secure_serial\pca10040\s132\arm5_no_packs_build\nrf52832_xxaa_s132.hex --output C:\Users\ParthibanK\Documents\BootSettv1.hex Parsing input hex files. Merging files. Storing merged file.

  1. Now i opened Nrfgo Studio and first Flashed the softdevice [SDK132] hex file from componnets\softdevice and then i flashed Bootloader as BootSettv1.hex

  2. as i understood from your instructions after a reset the board should be able to connect with my Android phone as "DfuTarg". This does not happen. I cannot fine any Bluetooth Connection with thew Name DfuTarg and so i assumed no Connection is being established also do not know wher the mistake lies as i i have followed all the necessary instructions .

Please helpimage description

Related