This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Combining ble_app_gls and bootloader_secure project.

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

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

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

Children
No Data
Related