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

Error Listing symbols

Hi All,

I am working on BLE+SD card Library, s132. Although i am getting certain errors which i am unable to counter.:-

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf52832_xxaa'
compiling main.c...
linking...
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_block_read (referred from nrf_block_dev_sdc.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_block_write (referred from nrf_block_dev_sdc.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_busy_check (referred from nrf_block_dev_sdc.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_info_get (referred from nrf_block_dev_sdc.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_init (referred from nrf_block_dev_sdc.o).
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_sdc_uninit (referred from nrf_block_dev_sdc.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 6 error messages.
".\_build\nrf52832_xxaa.axf" - 6 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:12

I know that this happens because my compiler is unable to to identify the symbols although the particular header files are present.

One more thing, my app_sdcard. c source file is not including its header files, it is only including sdk_config.h

Why is this happening? How should i counter this problem? The header files are added to path.

Thanks in advance.

Best Regards.

Parents
  • I got the answer for this, the app_sdcard.c source file has a code snippet which says:-

    #include "sdk_config.h"
    #if APP_SDCARD_ENABLED
    
    #include "app_sdcard.h"
    #include "nrf_gpio.h"
    #include "nrf_drv_spi.h"
    #include "app_error.h"
    #include "nrf_assert.h"
    
    #include "nrf_pt.h"
    

    that means if APP_SDCARD_ENABLED is 1, then only it will include other header files. So i had to set it as 1 in sdk_config.h file.

Reply
  • I got the answer for this, the app_sdcard.c source file has a code snippet which says:-

    #include "sdk_config.h"
    #if APP_SDCARD_ENABLED
    
    #include "app_sdcard.h"
    #include "nrf_gpio.h"
    #include "nrf_drv_spi.h"
    #include "app_error.h"
    #include "nrf_assert.h"
    
    #include "nrf_pt.h"
    

    that means if APP_SDCARD_ENABLED is 1, then only it will include other header files. So i had to set it as 1 in sdk_config.h file.

Children
No Data
Related