Timer0 interrupt only firing once on nRF52832 using nrfx sdk - how to re-enable in ISR?

Hi,

With the attached code, the timer0_event_handler() is only called once - is there something else I need to do in the ISR or at initialisation-time to ensure that it fires repeatedly?   


Parents
  • Don't need the isr as the SHORTS handles the clear and leaves timer running, try getting rid of it:

Reply
  • Don't need the isr as the SHORTS handles the clear and leaves timer running, try getting rid of it:

Children
  • I need the ISR to perform an application specific action though.  What's SHORTS, btw?  

  • SHORTS as set in the code above clears the timer on compare 0 and leaves it running so isr shouldn't redundantly clear or attempt to enable; if the isr is required simply do this:

  • I do need to do app-specific things in the ISR though (I've just left them out of the code I posted, for conciseness and confidentiality) .  

    The lines:
    nrfx_timer_clear(&m_timer0);
    nrfx_timer_enable(&m_timer0);
    I only added these two lines when the ISR failed to work more than once initially - but this didn't help.