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

Bootloader is not jumping to application

1. Did secure BLE DFU first time for hrs app, BL jump to hrs app

2. Did secure BLE DFU second time for hts app, BL jump to hts app

3. Did nrfjprog HID keyboard app and IAR , in both cases, BL is not jumping to HID KB and stays in BL DFU target mode

Why in third case bootloader is not starting application or why HID keyboard application is not showing up as Nordic_keyboard?

Can anybody please answer?

Thanks in advance!

Parents Reply Children
  • The bootloader will check the stored application CRC generated during the DFU process against the CRC of the application in flash( the bootloader calculates this). Hence, if you perform a application DFU and then overwrite the application with a new application that is not identical with the one that was "DFUed in", then the bootloader will not jump to the application since the CRCs does not match. 

    As I stated in my previous response, you need to generate the bootloader settings hex using nrfutil and then flash that together with the new application to set the correct application CRC in the bootloader settings page. 

    Best regards

    Bjørn 

  • When doing secure BLE DFU bootloader example, we merge bootloader hex and bootloader settings hex using mergehex command and then program with command nrfjprog --reset --program bootloader.hex --family NRF52 –sectoranduicrerase right

    If I want to program only bootloader settings hex into it's respective page and then example_application.hex then how can I do this?

    Thanks

  • What I did is health thermometer application I updated over the air securely with BLE. Then I generated bootloader settings hex page for nordic keyboard application like you said and programmed using 

    nrfjprog --reset --program application.hex --family NRF52 –sectoranduicrerase command.

    Then updated actual keyboard hex file using 

    nrfjprog --program keyboard.hex --sectorerase command.

    After reset it is showing as nordic_keyboard in nrfconnect mobile app.

    Thanks for your help bjorn!!

Related