Build error in custom nRF5281

I was trying to build the ble_app_scan functionality in a well served project in my custom nRF52810 board.
During project build I am facing these build errors in SDK v17.1.0

Building ‘ble_app_template_pca10040e_s112’ from solution ‘ble_app_template_pca10040e_s112’ in configuration ‘Release’
1> Generating linker script ‘ble_app_template_pca10040e_s112.ld’
1> Linking ble_app_template_pca10040e_s112.elf
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.42a/gcc/arm-none-eabi/bin/ld: unknown architecture of input file `C:/nRF SDK/nRF5_SDK_17.1.0_ddde560/nRF5_SDK_17.1.0_ddde560/components/softdevice/s112/hex/s112_nrf52_7.2.0_softdevice.hex' is incompatible with armv7e-m output
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.42a/gcc/arm-none-eabi/bin/ld: Output/Release/Exe/ble_app_template_pca10040e_s112.elf section `.sec1' will not fit in region `UNPLACED_SECTIONS'
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.42a/gcc/arm-none-eabi/bin/ld: region `UNPLACED_SECTIONS' overflowed by 101100 bytes
Build failed

  • I have tried with both SES v5.42a and 5.40a.
  • Changed size constraints from flash_placement.xml
    • ProgramSection alignment="4" load="Yes" name=".text" />
    • <ProgramSection alignment="4" load="Yes" name=".rodata" />)
  • Section Placement Macros to
    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x30000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x6000
    FLASH_START=0x19000
    FLASH_SIZE=0x17000
    RAM_START=0x20001740
    RAM_SIZE=0x45c0
Parents Reply Children
No Data
Related