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

flashing dfu bootloader and an application

How can I flash both the dfu bootloader and an application, and have the application run after the flash? As soon as I flash the bootloader, it kicks in doesn't fire the flashed application because bootloader_app_is_valid(DFU_BANK_0_REGION_START) is false. It only fires up the application after I upload it using the DFU mechanism.

Parents
  • To make the bootloader aware of the usual method of firmware flashing (Jlink), we need to manually write “0x1” at the address (0x03fc00), disable CRC checking of the image and do a system reset.

    $ nrfjprog.exe --memwr 0x03fc00 --val 0x1
    $ nrfjprog.exe --memwr 0x03fc04 --val 0x0
    $ nrfjprog.exe --reset
    

    nrfjprog.exe is distributed with the nRFGo Studio and in my system it is located in the following directory.

    $ which nrfjprog.exe
    /c/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/nrfjprog.exe
    
  • Is there a way to configure this in the hex file? when I typically download a merged bootloader+sd+app from mbed online compiler, they produce a single hex file, that when copied, automatically boots to the app and not the bootloader.

Reply Children
No Data
Related