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

Linker error - BLE advertising

I am trying to test a simple non-connectable BLE adverstising. I am using the following resources.

1. SDK - 16.0

2. SD - S132

3. Board - NRF52 Development kit. 

4. Segger embedded studio. 

I am getting the following linker error. 

Linking ble_adv.elf
Output/ble_adv Debug/Obj/SEGGER_THUMB_Startup.o: in function `exit':
undefined reference to `__SEGGER_init_table__'
Output/ble_adv Debug/Obj/ses_startup_nrf_common.o: in function `afterInitialize':
undefined reference to `__RAM_segment_end__'
Output/ble_adv Debug/Obj/main.o: in function `advertising_init':
undefined reference to `ble_advertising_init'
Build failed

Please help me solve it. Thanks in advance

Parents
  • Hi,

    The last error is caused either by the ble_advertising.c source file not being included in the project, or the module not being enabled in the sdk_config.h file:

    //==========================================================
    // <q> BLE_ADVERTISING_ENABLED  - ble_advertising - Advertising module
     
    
    #ifndef BLE_ADVERTISING_ENABLED
    #define BLE_ADVERTISING_ENABLED 1
    #endif

    The other two errors seem to be related to the project config. Could you zip up your project and upload it here? That would make it easier for us to debug the issue.

    Best regards,
    Jørgen

Reply
  • Hi,

    The last error is caused either by the ble_advertising.c source file not being included in the project, or the module not being enabled in the sdk_config.h file:

    //==========================================================
    // <q> BLE_ADVERTISING_ENABLED  - ble_advertising - Advertising module
     
    
    #ifndef BLE_ADVERTISING_ENABLED
    #define BLE_ADVERTISING_ENABLED 1
    #endif

    The other two errors seem to be related to the project config. Could you zip up your project and upload it here? That would make it easier for us to debug the issue.

    Best regards,
    Jørgen

Children
Related