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

DFU service with SDK 11 can start secure bootloader??

I am using nrf51822 with 16k RAM chip, xAA. I followed the procedures...but I don't know what is wrong with it..

  1. Program secure bootloader with S130 (2.0.0), SDK 12

  2. Program Softdevice S130 (2.0.0)

  3. Program my application. (which is using S130, 2.0.0, but compiled with SDK 11, and My application included DFU service from the link )

I checked DfuTarg device name is shown..and I successfully program with nRF tool DFU(android). The zip file is generated as follows:

nrfutil pkg generate --hw-version 51 --sd-req 0x80 --application-version 3 --application my_app.hex --key-file private.pem app_dfu.zip

I think I can successfully program it with nRF Tool. Because the device works fine after that. But when I try to program with nRF tool again, (with same zip file). I got error. "Upload failed: DFU DEVICE DISCONNECTED"

Am I doing something wrong? Of course I changed pub key in the bootloader with my private key. To initiate bootload mechanism is different from previous one? So I have to reprogram with new SDK 12? (but I do not have time for this..) I do not want to migrate to SDK11 to SDK 12 at this time. Thank you in advance.

If it is not possible, is there any other way to secure my application hex?? (to prevent to program to my device, for example).

Related