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

SDK12 - DFU bootloader_secure example doesn't compiled

Hi, I am tring to build and compile the SDK 12 DFU bootloader_secure . I am getting an error: "unable to allocate space for sections/blocks with a total estimated minimum size of 0x6f62 bytes (max align 0x10) in <[0x00078000-0x0007dfff]> (total uncommitted space 0x5c00)." I have increased the flash regions manually to 0x00000-0x80000 accordimg to the memory map data this error disappeared and the folows occure:

image description

Is there any solution?

Parents
  • Hi Anna,

    It's not a good idea to change the flash region to 0x00000-0x80000 since it will over writing the softdevice and the bootloader setting.

    I suspect it was because code optimization is turned off on the compiler so the default size 0x00078000-0x0007dfff doesn't fit. You can try to increase the size so that the bootloader start from 0x77000 instead of 0x78000

Reply
  • Hi Anna,

    It's not a good idea to change the flash region to 0x00000-0x80000 since it will over writing the softdevice and the bootloader setting.

    I suspect it was because code optimization is turned off on the compiler so the default size 0x00078000-0x0007dfff doesn't fit. You can try to increase the size so that the bootloader start from 0x77000 instead of 0x78000

Children
No Data
Related