Secure Bootloader problems with memory

Hello, 

I am using \nRF5_SDK_17.1.0_ddde560\examples\dfu\secure_bootloader\pca10040_s132_ble_debug, but when I bulid the proyect the following error appear: 

.text is too large to fit in FLASH1 memory segment

.dfu_trans is too large to fit in FLASH1 memory segment

.svc_data is too large to fit in FLASH1 memory segment

(...)

section .mbr_params_page VMA [000000000007e000,000000000007efff] overlaps section .text VMA [00000000000713b8,00000000000802ff]

Has anyone an idea, how to solve this problem?

Thanks

Parents
  • Hello,

    Have you made any modifications to the project? The error indicates that the bootloader image is too big to fit into the pre-allocated bootloader region (Memory layout), which should not happen if you're building the original SDK project.

    If you actually have modified the project and made the bootloader larger, then the solution will be to allocate more flash to the bootloader by lowering its start address in flash (Note: the address must be aligned to a flash page boundary. I.e. address must be divisible by 0x1000).

    Bootloader start address setting  in Segger Embedded studio

    Best regards,

    Vidar

Reply
  • Hello,

    Have you made any modifications to the project? The error indicates that the bootloader image is too big to fit into the pre-allocated bootloader region (Memory layout), which should not happen if you're building the original SDK project.

    If you actually have modified the project and made the bootloader larger, then the solution will be to allocate more flash to the bootloader by lowering its start address in flash (Note: the address must be aligned to a flash page boundary. I.e. address must be divisible by 0x1000).

    Bootloader start address setting  in Segger Embedded studio

    Best regards,

    Vidar

Children
Related