This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help with linker errors

I'm porting code to SDK v14.0.0 from v12.2.0. and I'm getting the following summary of linker errors:

Error: L6218E: Undefined symbol sdk_mapped_flags_bulk_update_by_key (referred from ble_conn_state.o).

Error: L6218E: Undefined symbol nrf_fstorage_is_busy (referred from ble_advertising.o).

Error: L6218E: Undefined symbol nrf_memobj_get (referred from nrf_log_backend_serial.o).

Error: L6218E: Undefined symbol nrf_cli_fprintf (referred from nrf_log_frontend.o).

Error: L6218E: Undefined symbol nrf_fprintf (referred from nrf_log_str_formatter.o).

Error: L6218E: Undefined symbol nrf_section_iter_init (referred from nrf_sdh.o).

I have all of the source codes added to my project along with the appropriate include path directories. I must not have the proper settings in sdk_config.h file or the defines setup correctly. The latter preprocessor symbols are as follows:

BOARD_CUSTOM __FPU_PRESENT ARM_MATH_CM4 ANT_STACK_SUPPORT_REQD BLE_STACK_SUPPORT_REQD S332 NRF_SD_BLE_API_VERSION=5 CONFIG_GPIO_AS_PINRESET NRF52 NRF52832_XXAA CONFIG_NFCT_PINS_AS_GPIOS NRF_LOG_USES_UART=1 SOFTDEVICE_PRESENT SWI_DISABLE0 NRF_LOG_USES_RTT=1 NRF52_PAN_74

Any help would be most appreciated.

Ross

Parents
  • well picking one at random. nrf_fstorage_is_busy is found in nrf_fstorage.c and that has a big

    #ifdef NRF_FSTORAGE_ENABLED
    

    at the top of the file so either you don't have the c file at all (you say you do) or you don't have that define in your sdk_config.h.

    I'm assuming the other undefined symbols are similarly protected by ifdefs.

    For anything other than interrupt handlers I don't really know why they bother, code not used isn't linked in anyway so just compiling it makes no difference .. but that's how the SDK works

  • Yes, I was able to solve them all. I'm afraid it was a newbie mistake. I had not added all of the required files to my project.

Reply Children
No Data
Related