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

Undefined symbol

I am getting following errors when compiling source code in Keil-5. Any one suggest me what i am missing to define symbol?

I have defined symbols in target>>c/c++ : BLE_STACK_SUPPORT_REQD NRF52_PAN_53 NRF52_PAN_15 NRF52_PAN_54 NRF52_PAN_20 NRF52_PAN_55 NRF52_PAN_30 NRF52_PAN_58 NRF52_PAN_31 NRF52_PAN_62 NRF52_PAN_36 NRF52_PAN_63 NRF52_PAN_51 NRF52_PAN_64 CONFIG_GPIO_AS_PINRESET BOARD_PCA10040 NRF52_PAN_12 S132 NRF_LOG_USES_UART=1 NRF52 SOFTDEVICE_PRESENT SWI_DISABLE0

linking... ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol SEGGER_RTT_printf (referred from main.o). ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol dm_ble_evt_handler (referred from main.o). ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol dm_init (referred from main.o). ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol dm_register (referred from main.o). ._build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol dm_whitelist_create (referred from main.o). Not enough information to list image symbols.

Thanks in Advance

Rajneesh

Parents
    1. You need to add RTT files to your project. here is the tutorial that will will help you do it.

    2. You need to add SDK\components\ble\device_manager_xxx (xxx is central or peripheral depending on your project) sources and headers to your project.

  • Hi, so 

    SEGGER_RTT_WriteString
     works for me but the moment I include 
    SEGGER_RTT_printf

    I get three errors - 
    .\_build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol log_rtt_init (referred from softdevice_handler.o).
    .\_build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol log_rtt_printf (referred from softdevice_handler.o).
    I have made NRF_LOG_USES_RTT=1 in my preprocessor symbols. I have also included the softdevice s132 in my project. I have included the SEGGER_RTT_printf.c in my project. I am using SDK v11 with a nRF58210.

Reply
  • Hi, so 

    SEGGER_RTT_WriteString
     works for me but the moment I include 
    SEGGER_RTT_printf

    I get three errors - 
    .\_build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol log_rtt_init (referred from softdevice_handler.o).
    .\_build\nrf52832_xxaa_s132.axf: Error: L6218E: Undefined symbol log_rtt_printf (referred from softdevice_handler.o).
    I have made NRF_LOG_USES_RTT=1 in my preprocessor symbols. I have also included the softdevice s132 in my project. I have included the SEGGER_RTT_printf.c in my project. I am using SDK v11 with a nRF58210.

Children
Related