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

nrf51822 - app_timer - getting compile errors?

Hello, I duplicated the project example "nrf51-micro-esb-master" under "proprietary_rf" and got it up and running. I now need to incorporate some timer functionality.

I followed this tutorial on the app_timer: devzone.nordicsemi.com/.../

However, I get these error messages, and I don't understand why?

compiling nrf_drv_clock.c...
compiling app_util_platform.c...
compiling app_timer.c...
linking...
.\_build\tiny_esb_ptx.axf: Error: L6218E: Undefined symbol app_error_handler_bare (referred from app_timer.o).
.\_build\tiny_esb_ptx.axf: Error: L6218E: Undefined symbol nrf_nvic_state (referred from app_util_platform.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 2 error messages.
".\_build\tiny_esb_ptx.axf" - 2 Error(s), 3 Warning(s).
Target not created.
Build Time Elapsed:  00:00:01

Any help/advice would be greatly appreciated, thanks!

Parents
  • You can't be compiling all the necessary source files

    Make sure you have

    SDK_V12.2.0\components\libraries\util\app_error.c and SDK_V12.2.0\components\libraries\util\app_util_platform.c

    in your project (or Makefile)

  • I got a project working successfully by duplicating the "nrf51-micro-esb-master" under "proprietary_rf" if thats what you mean by "build environment" that I am using. All I am trying to do is add functionality to the project so I can get some elapsed time values. All the advice everyone gives online is to do the app_timer tutorial to incorporate this functionality, but this does not seem to work.

    I did add every include path that the tutorial told me to do. I kept getting build errors saying files weren't found, so each file that was not found I added an include path to that until it finally compiled.... well mostly... now I am stuck with these last error messages that I don't understand.

    Thanks again for your help.

Reply
  • I got a project working successfully by duplicating the "nrf51-micro-esb-master" under "proprietary_rf" if thats what you mean by "build environment" that I am using. All I am trying to do is add functionality to the project so I can get some elapsed time values. All the advice everyone gives online is to do the app_timer tutorial to incorporate this functionality, but this does not seem to work.

    I did add every include path that the tutorial told me to do. I kept getting build errors saying files weren't found, so each file that was not found I added an include path to that until it finally compiled.... well mostly... now I am stuck with these last error messages that I don't understand.

    Thanks again for your help.

Children
No Data
Related