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

Secure DFU Issue

Dear Nordic Team,

Thanks for supporting.

Now i am work with secure dfu using SDK12.3.0.

My Hardware :PCA10028 nrfutil version 3.1.0

Create Zip file like : nrfutil pkg generate --hw-version 51 --sd-req 0x80 --application-version 4 --application app.hex --key-file key.pem app_dfu_package.zip

  1. Initially load secure_dfu_secure_dfu_ble_s130_pca10028_debug.hex through nrfgo studio
  2. Advertising shows DfuTarg
  3. Then try to upload zip file through nrf mobile app showing error like, Upload Failed:UNKNOWN(8202)

I dont know what i am doing wrong . Please help anyone.

Parents
  • @Murugan What is the output from your nrfutil command? First off, are you sure you are using the s130 v2.0.0 softdevice? Under the components/softdevice/s130/hex/ folder in SDK 12.3.0, it says SD 2.0.1, which would make the correct --sd-req code 0x87. But double check what SD you are using.

    Also, not sure if you can use key.pem as your private key (see link). Should work I guess. In the Secure DFU blog post, the private key is called private.key. Not sure if this will make a difference though.

    If you follow the blog post I mention above, it should be quite straightforward how to do secure dfu. Let me know if you need anymore help! Could also be something with micro-ecc like nemunoz commented.

Reply
  • @Murugan What is the output from your nrfutil command? First off, are you sure you are using the s130 v2.0.0 softdevice? Under the components/softdevice/s130/hex/ folder in SDK 12.3.0, it says SD 2.0.1, which would make the correct --sd-req code 0x87. But double check what SD you are using.

    Also, not sure if you can use key.pem as your private key (see link). Should work I guess. In the Secure DFU blog post, the private key is called private.key. Not sure if this will make a difference though.

    If you follow the blog post I mention above, it should be quite straightforward how to do secure dfu. Let me know if you need anymore help! Could also be something with micro-ecc like nemunoz commented.

Children
No Data
Related