Hi, I am using Zephyr and want to use the nrfx_timer_compare functions.
It seems that the system is working with Timer4 and channel 0 to 4. However, the compare of channel 5 is never fired.
I used IRQ_DIRECT_CONNECT(TIMER4_IRQn, IRQ_PRIO_LOWEST, bus_timer_event, 0); and in my interrupt handler I test NRF_TIMER4->EVENTS_COMPARE[0] up to NRF_TIMER4->EVENTS_COMPARE[5].
All events (NRF_TIMER4->EVENTS_COMPARE[0] to NRF_TIMER4->EVENTS_COMPARE[4]) are detected and handled, but NRF_TIMER4->EVENTS_COMPARE[5] will never be set.
The initialisation looks like:
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL0, delay, true );
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL1, delay+417, true );
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL2, 2400, true );
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL3, 5500, true );
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL4, 13500, true );
nrfx_timer_compare( &bus_timer, NRF_TIMER_CC_CHANNEL5, 16300, true );
Any idea why the 5th channel will never be set?
