Hello, I want to combine ble_app_gls and bootloader_secure project. Can you suggest me how to add dfu functionality to ble_app_gls project? Thanks, Shailav
image- publickey.PNG
Hello, I want to combine ble_app_gls and bootloader_secure project. Can you suggest me how to add dfu functionality to ble_app_gls project? Thanks, Shailav
image- publickey.PNG
Hello, Yes with the help of few people who reply here I already combined buttonless dfu support and ble_app_gls example. I am posting my code above. Now according to my application I should be able to update pca firmware by ota through nrf app. I also want to provide private key feature which is available in bootlader secure project so that I can update new firmware to nrf device via nrf connect app. Thanks, Shailav
Ok, I can see that Vidar Berg has been helping you in this question. If I understand your discussion correctly, you are not sure where the public keydfu_public_key.c
should be placed? As Vidar explained, the buttonless support added to the ble_app_gls example only allows the application to jump to the bootloader when receiving a DFU start command over BLE from the nRFConnect app. Everything related to the actual DFU process is handled in the bootloader, not in the application. Thus, the public key must be placed in the bootloader. If you open the bootloader project in Keil, you'll see that there is a dfu_public_key.c
in the Application folder in the project manager. You have to replace the public key, pk[64]
, with the one you generate using nrfutil. Then just compile and flash and perform the DFU.
Hello, I have generated and changed the public key as suggested by you. Please see the image attached above. Now in bootloader_secure project there are files like dfu_public_key.c. How should I attach this file in my code? The link for code is provided above. Thanks, Shailav