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

Blinky_freeRTOS linker issues

Hi, I am working with the example Blinky_freertos present on the SDK_13.0.0_04a0bfd. I have built the example w/o issues in compilation but I have the following problems with the linker:

  1. undefined reference to `nrf_drv_clock_lfclk_request'

  2. undefined reference to `nrf_drv_clock_init'

All the necessary files and folders seem to be included in the makefile(which provided with the example). I guess there is something wrong with the configuration but I haven't found anything in the documentation related to this.

I am using arm-none-eabi-gcc 5.4.1.

Parents Reply
  • In SDK 15.0.0 the function nrf_drv_clock_lfclk_request() is defined in integration/nrfx/legacy/nrf_drv_clock.c. This file doesn't include sdk_config.h in any way. Therefore CLOCK_ENABLED is seen as undefined and nrf_drv_clock_lfclk_request() is not compiled. So how can I enable the clock library in SDK 15.0.0? Or maybe the code in external/freertos/portable/CMSIS/nrf52/port_cmsis_systick.c should be ported to new nrfx drivers?

Children
Related