Hi folks,
Currently I am able to do secure OTA DFU on my nrf51822 chip (MDBT40) using the example code provided by Nordic SDK 12 (s130). It works charming!
-
However, how am I supposed to jump to my application code? In the example code of bootloader secure program, the boot loading code finished with:
nrf_bootloader_app_start(MAIN_APPLICATION_START_ADDR);
Where and how should I define the value of MAIN_APPLICATION_START_ADDR.
-
I considered ble_app_hrs program as an example application firmware, i.e. after finishing executing secure DFU boot loading, the program will jump to ble_app_hrs. I merged three file using following command:
./mergehex -m s130_nrf51_2.0.1_softdevice.hex application.hex bootloader.hex -o out.hex
where application.hex is the ble_app_hrs.hex and bootloader.hex is the dfu_secure.hex.
Finally, I simply drag the out.hex file into virtual file system created by DAPLink. However, it looks like the application code is not running at all..
- Finally, how should I do to enable secure dfu services in the application program as well, such as ble_app_hrs.hex
Thanks! Any comments are welcome!