I migrated my nRF52840 project to nRF5 SDK for Thread and Zigbee 2.0.0 (from 1.0.0), but I keep getting a linker error:
Building ‘myproject’ from solution ‘myproject’ in configuration ‘Debug’
1> Linking myproject.elf
1> E:/Segger/SEGGER Embedded Studio for ARM 3.40/gcc/arm-none-eabi/bin/ld: Output/Debug/Exe/myproject.elf section `.log_backends' will not fit in region `UNPLACED_SECTIONS'
1> E:/Segger/SEGGER Embedded Studio for ARM 3.40/gcc/arm-none-eabi/bin/ld: region `UNPLACED_SECTIONS' overflowed by 4113 bytes
Build failed
The generated .ld file doesn't contain a definition for a .log_backends section, but the examples do. I looked for a definition of .log_backends in a couple of related examples in 2.0.0, but couldn't find it.
The Linker settings for the project (under Edit Options...) match those of the examples as well.
Am I missing a setting somewhere?
Here is the generated .ld file:
MEMORY
{
UNPLACED_SECTIONS (wx) : ORIGIN = 0x100000000, LENGTH = 0
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000
RAM (wx) : ORIGIN = 0x20000000, LENGTH = 0x00040000
ot_flash_data (rx) : ORIGIN = 0x000f4000, LENGTH = 0x00004000
uicr_bootloader_start_address (rx) : ORIGIN = 0x10001014, LENGTH = 0x00000004
bootloader_settings_page (rx) : ORIGIN = 0x000ff000, LENGTH = 0x00001000
uicr_mbr_params_page (rx) : ORIGIN = 0x10001018, LENGTH = 0x00000004
mbr_params_page (rx) : ORIGIN = 0x000fe000, LENGTH = 0x00001000
}
SECTIONS
{
__FLASH_segment_start__ = 0x00000000;
__FLASH_segment_end__ = 0x00100000;
__FLASH_segment_size__ = 0x00100000;
__RAM_segment_start__ = 0x20000000;
__RAM_segment_end__ = 0x20040000;
__RAM_segment_size__ = 0x00040000;
__ot_flash_data_segment_start__ = 0x000f4000;
__ot_flash_data_segment_end__ = 0x000f8000;
__ot_flash_data_segment_size__ = 0x00004000;
__uicr_bootloader_start_address_segment_start__ = 0x10001014;
__uicr_bootloader_start_address_segment_end__ = 0x10001018;
__uicr_bootloader_start_address_segment_size__ = 0x00000004;
__bootloader_settings_page_segment_start__ = 0x000ff000;
__bootloader_settings_page_segment_end__ = 0x00100000;
__bootloader_settings_page_segment_size__ = 0x00001000;
__uicr_mbr_params_page_segment_start__ = 0x10001018;
__uicr_mbr_params_page_segment_end__ = 0x1000101c;
__uicr_mbr_params_page_segment_size__ = 0x00000004;
__mbr_params_page_segment_start__ = 0x000fe000;
__mbr_params_page_segment_end__ = 0x000ff000;
__mbr_params_page_segment_size__ = 0x00001000;
__HEAPSIZE__ = 8192;
__STACKSIZE_PROCESS__ = 0;
__STACKSIZE__ = 8192;
}
The .ld file in the exampes has a great deal more.
Mary