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

Can I use app_timer and nrf_drv_timer together?

Hi,

I am having problems with using BLE along with gpiote and ppi for measuring the delay between two waveforms and sending the delay between them to an app using bluetooth. I am measuring the delay using the nrf timer driver, which i've learnt that it's very precise. And I got the code for BLE from a Nordic's tutorial that uses app_timer (RTC). However, they are not working together... is there conflict between these two? How do I make the code work???

Thank you in advance.

Parents Reply Children
  • Hello Bjorn , I am not able to solve the follwoing errors , I have included necessary c files and header files but still stuck with the following errors. Please help me with this.:

    Building ‘ble_app_uart_pca10040_s132’ from solution ‘ble_app_uart_pca10040_s132’ in configuration ‘Release’
    Compiling ‘main.c’

    Output/ble_app_uart_pca10040_s132 Release/Obj/app_button.o: In function `app_button_init':
    undefined reference to `app_timer_create'
    Output/ble_app_uart_pca10040_s132 Release/Obj/bsp.o: In function `bsp_button_event_handler':
    undefined reference to `app_timer_start'
    undefined reference to `app_timer_stop'
    Output/ble_app_uart_pca10040_s132 Release/Obj/bsp.o: In function `bsp_led_indication':
    undefined reference to `app_timer_stop'
    undefined reference to `app_timer_stop'
    undefined reference to `app_timer_start'
    undefined reference to `app_timer_start'
    Output/ble_app_uart_pca10040_s132 Release/Obj/bsp.o: In function `bsp_init':
    undefined reference to `app_timer_create'
    undefined reference to `app_timer_create'
    undefined reference to `app_timer_create'
    Output/ble_app_uart_pca10040_s132 Release/Obj/main.o: In function `saadc_sampling_event_init':
    undefined reference to `nrfx_timer_init'
    undefined reference to `nrfx_timer_extended_compare'
    undefined reference to `nrfx_timer_enable'
    undefined reference to `nrf_drv_saadc_task_address_get'
    Output/ble_app_uart_pca10040_s132 Release/Obj/main.o: In function `timers_init':
    undefined reference to `app_timer_init'
    Output/ble_app_uart_pca10040_s132 Release/Obj/ble_conn_params.o: In function `conn_params_negotiation':
    undefined reference to `app_timer_start'
    Output/ble_app_uart_pca10040_s132 Release/Obj/ble_conn_params.o: In function `on_write':
    undefined reference to `app_timer_stop'
    Output/ble_app_uart_pca10040_s132 Release/Obj/ble_conn_params.o: In function `on_disconnect':
    undefined reference to `app_timer_stop'
    Output/ble_app_uart_pca10040_s132 Release/Obj/ble_conn_params.o: In function `ble_conn_params_init':
    undefined reference to `app_timer_create'
    Build failed

  • Could you please open a new devzone case? Also, could you use the Insert -> Insert Code functionality when you create that new case? It makes your question a lot easier to read.

Related