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
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.
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.