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

Undefined symbols with ARM compiler _start/_stop

When building a project I get a number of undefined symbols:

.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_fs_data (referred from nrf_fstorage.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_fs_data (referred from nrf_fstorage.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_pwr_mgmt_data (referred from nrf_pwr_mgmt.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_pwr_mgmt_data (referred from nrf_pwr_mgmt.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_sdh_req_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_sdh_stack_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_sdh_state_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_sdh_req_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_sdh_stack_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_sdh_state_observers (referred from nrf_sdh.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __data_start__ (referred from nrf_sdh_ble.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_sdh_ble_observers (referred from nrf_sdh_ble.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_sdh_ble_observers (referred from nrf_sdh_ble.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __start_sdh_soc_observers (referred from nrf_sdh_soc.o).
.\_build\nrf52840_xxaa.axf: Error: L6218E: Undefined symbol __stop_sdh_soc_observers (referred from nrf_sdh_soc.o).

It seems to be related to the LOG, by I have turned all log off in sdk_config.

The project is the example template project where I have changed compiler to ARM Compiler 6 instead of the old version 5. Version 6 is much improved in many aspects so I would like to use that version.

Related