Issue in compiling - getting error for Unplaced _section

Hi team ,

I am using 15.3 sdk and NRF52832 hardware. and Tool - SEGGER Embedded Studio for ARM 4.30c

I have developed code with DFU feature and and generated .hex file  - app_bootloader_and_setting.hex and DFU .zip file for application to over the air firmware update.

and its working.

Now wanted to change some part of  the code but getting following error.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Rebuilding ‘ble_app_buttonless_dfu_pca10040e_s112’ from solution ‘ble_app_buttonless_dfu_pca10040e_s112’ in configuration ‘Release’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/thumb_crt0.o does not exist.
Assembling ‘thumb_crt0.s’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_backend_rtt.o does not exist.
Compiling ‘nrf_log_backend_rtt.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_backend_serial.o does not exist.
Compiling ‘nrf_log_backend_serial.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_backend_uart.o does not exist.
Compiling ‘nrf_log_backend_uart.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_default_backends.o does not exist.
Compiling ‘nrf_log_default_backends.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_frontend.o does not exist.
Compiling ‘nrf_log_frontend.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/nrf_log_str_formatter.o does not exist.
Compiling ‘nrf_log_str_formatter.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/boards.o does not exist.
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/ses_startup_nrf52810.o does not exist.
Assembling ‘ses_startup_nrf52810.s’
Compiling ‘boards.c’
Output/ble_app_buttonless_dfu_pca10040e_s112 Release/Obj/ses_startup_nrf_common.o does not exist.
Assembling ‘ses_startup_nrf_common.s’
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

My flash_placement.xml

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE Linker_Placement_File>
<Root name="Flash Section Placement">
<MemorySegment name="FLASH" start="$(FLASH_PH_START)" size="$(FLASH_PH_SIZE)">
<ProgramSection load="no" name=".reserved_flash" start="$(FLASH_PH_START)" size="$(FLASH_START)-$(FLASH_PH_START)" />
<ProgramSection alignment="0x100" load="Yes" name=".vectors" start="$(FLASH_START)" />
<ProgramSection alignment="4" load="Yes" name=".init" />
<ProgramSection alignment="4" load="Yes" name=".init_rodata" />
<ProgramSection alignment="4" load="Yes" name=".text" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".sdh_ble_observers" inputsections="*(SORT(.sdh_ble_observers*))" address_symbol="__start_sdh_ble_observers" end_symbol="__stop_sdh_ble_observers" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".sdh_soc_observers" inputsections="*(SORT(.sdh_soc_observers*))" address_symbol="__start_sdh_soc_observers" end_symbol="__stop_sdh_soc_observers" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".pwr_mgmt_data" inputsections="*(SORT(.pwr_mgmt_data*))" address_symbol="__start_pwr_mgmt_data" end_symbol="__stop_pwr_mgmt_data" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_queue" inputsections="*(.nrf_queue*)" address_symbol="__start_nrf_queue" end_symbol="__stop_nrf_queue" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_const_data" inputsections="*(SORT(.log_const_data*))" address_symbol="__start_log_const_data" end_symbol="__stop_log_const_data" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".sdh_req_observers" inputsections="*(SORT(.sdh_req_observers*))" address_symbol="__start_sdh_req_observers" end_symbol="__stop_sdh_req_observers" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".sdh_state_observers" inputsections="*(SORT(.sdh_state_observers*))" address_symbol="__start_sdh_state_observers" end_symbol="__stop_sdh_state_observers" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".sdh_stack_observers" inputsections="*(SORT(.sdh_stack_observers*))" address_symbol="__start_sdh_stack_observers" end_symbol="__stop_sdh_stack_observers" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_backends" inputsections="*(SORT(.log_backends*))" address_symbol="__start_log_backends" end_symbol="__stop_log_backends" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_balloc" inputsections="*(.nrf_balloc*)" address_symbol="__start_nrf_balloc" end_symbol="__stop_nrf_balloc" />
<ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections" address_symbol="__start_nrf_sections" />
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_dynamic_data" inputsections="*(SORT(.log_dynamic_data*))" runin=".log_dynamic_data_run"/>
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_filter_data" inputsections="*(SORT(.log_filter_data*))" runin=".log_filter_data_run"/>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

thumb_crt0.s

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// **********************************************************************
// * SEGGER Microcontroller GmbH *
// * The Embedded Experts *
// **********************************************************************
// * *
// * (c) 2014 - 2019 SEGGER Microcontroller GmbH *
// * (c) 2001 - 2019 Rowley Associates Limited *
// * *
// * www.segger.com Support: support@segger.com *
// * *
// **********************************************************************
// * *
// * All rights reserved. *
// * *
// * Redistribution and use in source and binary forms, with or *
// * without modification, are permitted provided that the following *
// * conditions are met: *
// * *
// * - Redistributions of source code must retain the above copyright *
// * notice, this list of conditions and the following disclaimer. *
// * *
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

set section placement macros

I am not getting where is the cause so please any one suggest me to come out this issues.

Waiting for your valuable response.

Thanks,

Rohit