Timers

Hi

I am would like to know how to setup *.overlay file for timer and find code for a simple timer interrupt using the nrf54l15.

Best Regards

David

Parents Reply
  • Hi

    I have just started trying the ncs-nrfx-timer-example example I have problems, I am using a blinky example to start with and have just added the 2 lines of code below.

    #include <nrfx_timer.h>
    static const nrfx_timer_t my_timer = NRFX_TIMER_INSTANCE(1);
    Error in terminal:


    from C:/nordic/myApps/blinky_1/src/main.c:8:
    C:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:37: error: 'NRF_TIMER1' undeclared here (not in a function); did you mean 'NRF_TIMER10'?
    64 | .p_reg = NRFX_CONCAT(NRF_, TIMER, id), \
    | ^~~~
    C:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:200:32: note: in definition of macro 'NRFX_CONCAT_2_'
    200 | #define NRFX_CONCAT_2_(p1, p2) p1 ## p2

    Can you please assist
    David
Children
Related