Hi,
I have the ble_app_uart with OTA functionality on SDK11 that works.
Now I want to do the same with SDK12, but I see things have changed now.
I've found this tutorial:
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Fble_sdk_app_dfu_bootloader.html
But some things are not clear to me:
The bootloader_secure example, what does it do exactly?
On SDK11 I just had a hex file that I wrote with nRF studio as bootloader, and in the ble_app_uart I had a bit of code to jump to it.
How does that now work with bootloader_secure? Also what does it mean "Button 4: Holding this button during startup makes the device enter DFU mode."
Which button is that? How do I get it into DFU mode directly from the ble_app_uart without using any buttons?
Do I really need to build my own secure_bootloader, or is there one prebuilt with the public keys that I can use for testing purposes?
It says: "You can either create your own firmware package for testing or use one of the provided packages that are located in subfolders of <InstallFolder>\examples\dfu\ble_dfu_send_hex
. "
But there is no ble_dfu_send_hex in that directory on SDK12. Where can I find that?
Where do I find the correct code and libraries to add in my ble_app_uart to perform the jump to the bootloader?
Can I use the old SDK11 bootloader and jump into it from SDK12?
I tried setting gpregret to 0xB1 but I could not get it to enter in the old bootloader.
Edit:
I found this tutorial which answers most of the questions:
https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader
The only thing I did not find is how to jump from the application to the buttonless dfu bootloader.