This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

detailed example to create a custom bootloader?

Hello ,

following are my requirements :

  1. to create a secure bootloader which checks app validity at every boot .
  2. the boot loader should also accept UART communication .

following things i have tried :

  1. Stripping the secure DFU bootloader exanple just to boot into my own application : a. compiling the strippred code(removed every aspect of appcheck and DFU via Bluetooth) b. added a blinky funtionality before jumping to the new address ( this is also not sure what address to jump to) c. flashed the bootloader as per given directions using nrfprog and IAR d. flashed the original blinky code (example with a different delay) using IAR

the expectation from this code is to first show the blinky with 100msec delay and then jump to my apop with the blinky with 500 msec delay ,

the result i get is that the blinky from my main application runs directly bypassing the bootloader , i have driven the APP_START_ADRESS as 0x1000

PLease help with a tutorial or a way to achieve my requirements.

board used : nrf52840 dk SDK : 13.00 alpha

Parents
  • Hi Abhishek,

    we're going to release a experimental secure serial bootloader in the production release of SDK v13.0.0, which is scheduled in mid-March. Furthermore, the secure serial bootloader will have the same application validity check as the current secure BLE bootloader, i.e. it will check if the NRF_DFU_BANK_VALID_APP flag is written to the bootloader settings flash page.

    I suggest that you wait for the production release of SDK v13.0.0, rather than implementing this on your own.

    Best regards

    Bjørn

Reply
  • Hi Abhishek,

    we're going to release a experimental secure serial bootloader in the production release of SDK v13.0.0, which is scheduled in mid-March. Furthermore, the secure serial bootloader will have the same application validity check as the current secure BLE bootloader, i.e. it will check if the NRF_DFU_BANK_VALID_APP flag is written to the bootloader settings flash page.

    I suggest that you wait for the production release of SDK v13.0.0, rather than implementing this on your own.

    Best regards

    Bjørn

Children
Related