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

12.1.0 nRF5 SDK Bootloader size issue

I generated boot-loader (logging disabled) from SDK 12.1.0 for adding a signature check during DFU for nRF51

The problem I am facing is with the size of bootloader (hex file size 56,871 bytes).

Previously I was using bootloader (hex file size 40,050 bytes) generated from SDK 11.0.0

Application hex file size is 161,287 bytes

Soft device: S130: 305,123 bytes

While writing into flash through nRFgo Studio, I am following this sequence:

1. Upload Soft device hex file

2. Upload Application hex file

3. Upload bootloader hex file

On step 3 I am getting error "This hex file has data in SoftDevice region"

What are different ways to get over this issue?

Parents Reply
  • Below is the memory map after writing flash with new boot-loader

    Address Range
    3FC00 - 3FD5B => 348 bytes
    Bootloader
    3AC00 - 3FADB => 20188 bytes
    Application
    000000 - 40000 => 262144 bytes
    Application
    1B000 - 28FDF => 57312 bytes
    Soft Device
    1000 - 1AFFF => 106496 bytes
    MBR or Application
    0000 - 7BF => 1984 bytes

    The issue with this is Application is not starting normal.

    While below is the memory map after writing flash with older boot-loader (keeping application.hex same)

    Address Range
    3FC00 - 3FFFF => 1024 bytes
    Application
    000000 - 40000 => 262144 bytes
    Bootloader
    39800 - 3CB77 => 13176 bytes
    Application
    000000 - 40000 => 262144 bytes
    Application
    1B000 - 28FE7 => 57320 Bytes
    Soft Device
    1000 - 1AFFF => 106496 bytes
    MBR or Application
    0000 - 7BF => 1984 bytes

    With this, application is functioning normal.

Children
Related