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

IAR ERROR [Li005]

Hi, 

I am trying to integrate some ble code into my project but it keeps giving me errors like:

Error[Li005]: no definition for "ble_advertising_on_sys_evt" [referenced from C:\Projects\advanced-shared-channel-reference-design\app\np_hub\iar\ReleaseBlaze\Obj\main.o]

while I have put ble_advertising.c into my project

I am very confused why that did not work

Can someone help me with that?

Thanks!

Parents
  • Not sure it will help but the usual issue is incorrect include paths. Project options C++ has something like this:

    $PROJ_DIR$\..\..\..\config
    $PROJ_DIR$\..\..\..\..\..\..\components
    $PROJ_DIR$\..\..\..\..\..\..\components\boards
    $PROJ_DIR$\..\..\..\..\..\..\components\drivers_nrf\nrf_soc_nosd
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\atomic
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\balloc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\bsp
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\button
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\delay
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\experimental_section_vars
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\gfx
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\log
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\log\src
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\memobj
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\mutex
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\pwr_mgmt
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\queue
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\ringbuf
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\scheduler
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\spi_mngr
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\strerror
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\timer
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\util
    $PROJ_DIR$\..\..\..\..\..\..\components\toolchain\cmsis\include
    $PROJ_DIR$\..\..\..
    $PROJ_DIR$\..\..\..\..\..\..\external\fprintf
    $PROJ_DIR$\..\..\..\..\..\..\external\segger_rtt
    $PROJ_DIR$\..\..\..\..\..\..\external\thedotfactory_fonts
    $PROJ_DIR$\..\..\..\..\..\..\integration\nrfx
    $PROJ_DIR$\..\..\..\..\..\..\integration\nrfx\legacy
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\drivers\include
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\hal
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\mdk
    $PROJ_DIR$\..\config
    

    Often the include path for a specific file is simply missing, or if the project is in (or has been copied to) a different relative path the number of "..\" has to be adjusted for nearly every include. It's a pain, often easier by closing the project and manually editing the .ewp IAR project file

  • Hi, thanks for your reply, I have checked the paths and they seem correct

Reply Children
Related