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

application timer tutorial - undefined symbol

hi,

im trying to implement a one shot timer and followed the tutorial here: devzone.nordicsemi.com/.../

note that i adapted the code for a custom project (and a custom board, so im NOT using the DK)) of mine so it is NOT a copy of the tutorial code but i added the lines necessary to another project of mine for which i want to use timers.

i included the files as stated in the tutorial and also added the include paths. as im not using a softdevice i implemented the code to start the LFCLK. now when im compiling i get the error

._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_drv_clock_init (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nrf_drv_clock_lfclk_request (referred from main.o).

i know this is a linker error. how do i resolve this? im not using an external oscillator so will have to use the internal RC-oscillator.

Parents
  • Find the file where it is defined, and add that file to the Makefile or project. To find it:

    >cd ~/NRFSDKxx
    >grep nrf_drv_clock_init *
    

    From the list, pick out the file where it is defined. Probably .../components/nrf_drv/nrf_clock.c (just a guess).

Reply
  • Find the file where it is defined, and add that file to the Makefile or project. To find it:

    >cd ~/NRFSDKxx
    >grep nrf_drv_clock_init *
    

    From the list, pick out the file where it is defined. Probably .../components/nrf_drv/nrf_clock.c (just a guess).

Children
No Data