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

How to use RTC Clock with Softdevices

Hi everyone!. I am beginner for Nordic Devices

I want to use RTC Clock with softdevices

so I loaded the project ble_uart_s130 from examples.

and I changed code like below in nrf_drv_config.h in order to use RTC clock

/* CLOCK */ #define CLOCK_ENABLED 1

and I copied some files (nrf_drv_clock.h .c nrf_drv_rtc.h .c to drive folder)

and Compiled!

but there are error like below. (it is from softdevice_handler.c)

._build\nrf51422_xxac_s130.axf: Error: L6218E: Undefined symbol nrf_drv_clock_on_soc_event (referred from softdevice_handler.o). Not enough information to list image symbols.

How to I solve this problem?

Thank you! Reading this

  • You need to add nrf_drv_clock.c to the project so it gets compiled. And you don't need to copy the headers to the drive folder either, it should find them if you fix the include paths properly.

    The error message reasonably clearly tells you there's no definition of those functions, you only have the declaration in the header file. This is just a standard C build issue.

Related