Timer doesn't call timer_handler( ) on NRF54L15 DK board

Hi,

When try to use timer based on nrfx (https://github.com/NordicSemiconductor/nrfx/) directly on the nrf54l15 DK board, I found it never call the timer_handler( ).

My code is almost the same as this one: ncs/v2.9.1/modules/hal/nordic/nrfx/samples/src/nrfx_timer/timer/main.c

I tried all of the timers (TIMER00/10/20-24), as has the same behavior.

Where could I be wrong? Thanks.

Parents
  • Hi Dennis, 

    If you are compiling this in the nrf connect sdk environment then most likely the interrupts are not enabled/connected for the timer.

    Make sure you do that by calling something similar to below

    IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_TIMER_INST_GET(TIMER_INST_IDX)), IRQ_PRIO_LOWEST,
                NRFX_TIMER_INST_HANDLER_GET(TIMER_INST_IDX), 0, 0);

    Similar to explanation and code described in this reply.

Reply
  • Hi Dennis, 

    If you are compiling this in the nrf connect sdk environment then most likely the interrupts are not enabled/connected for the timer.

    Make sure you do that by calling something similar to below

    IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_TIMER_INST_GET(TIMER_INST_IDX)), IRQ_PRIO_LOWEST,
                NRFX_TIMER_INST_HANDLER_GET(TIMER_INST_IDX), 0, 0);

    Similar to explanation and code described in this reply.

Children
No Data
Related