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

undefined reference to `app_error_handler_bare'

Hello I am trying to build a project, the problem is that the project is not linking properly, it compiles for sure. During link process I have this errors:

C:\nrf52\workspace\MyProject\Debug/../src/main.c:821: undefined reference to `app_error_handler_bare'

C:\Users\ODB8E~1.MAN\AppData\Local\Temp\cczQDDCe.ltrans0.ltrans.o: In function `storage_handler':

C:\nrf52\workspace\MyProject\Debug/../src/main.c:225: undefined reference to `app_timer_start'

and so on, I have linked to a Nordic SDK folder, but it did not help, can someone help me solve this issue? Thank you in advance

Tools:

GNU Make Builder

ARM Gross GCC

Nordic SDK 11

nrf52832

Eclipse Oxygen

Parents
  • Hi,

    You need to include the correct source files in your project/Makefile.

    app_error_handler_bare is implemented in nRF5_SDK_11.0.0_89a8197\components\libraries\util\app_error.c.

    app_timer_start is implemented in nRF5_SDK_11.0.0_89a8197\components\libraries\timer\app_timer.c

    If you have more errors, please search all files in the SDK and include the source file implementing the missing function.

    Best regards,

    Jørgen

Reply
  • Hi,

    You need to include the correct source files in your project/Makefile.

    app_error_handler_bare is implemented in nRF5_SDK_11.0.0_89a8197\components\libraries\util\app_error.c.

    app_timer_start is implemented in nRF5_SDK_11.0.0_89a8197\components\libraries\timer\app_timer.c

    If you have more errors, please search all files in the SDK and include the source file implementing the missing function.

    Best regards,

    Jørgen

Children
Related