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

Flashing custom nRF52 (Bootloader, SoftDevice, Application)

Good morning,

Is it always required to use Segger J-Link in order to flash Bootloader, Softdevice and Application to a new device?

Could you summarize the different possibilities we have to flash any of these parts?

Furthermore, and regarding the nRF52840: is it possible to use the USB port to flash the device?

Best regards.

Parents Reply
  • Hi Dani,

    Yes, the settings page is needed to tell the bootloader that you have a valid application, it will fall back to DFU mode otherwise. As for debugging the app, you can do that after you've loaded the settings page. Just make sure to disable boot validation option in the settings page to allow the bootloader to boot the app even if it has been modified. 

    Dani said:
    What about preserved data? Have I to consider extra settings when bootloader is present

     FDS automatically detects the presence of the bootloader and places the data below the bootloader instead of placing it at the end of flash, see Memory layout. Also, the NRF_DFU_APP_DATA_AREA_SIZE flag inside the bootloader must correspond to the number of FDS pages allocated by the app to ensure app data is preserved data through DFU. The default is usually 3 pages. 

    Best regards,

    Vidar

Children
Related