NVIC_SetVector while SoftDevice active

Using nrf5 SDK (not connect):

I have a RTC2_IRQHandler that is correctly being called.

rather than:

void RTC2_IRQHandler() {

 if (mode == 2) {

    handleMode2();

 } else {

    handleMode1();

 }

}

I'd like to be able to have two separate interrupt handlers, and switch between them. NVIC_SetVector doesn't seem to work? Even after calling it, the old IRQ handler is invoked.

Is this expected? Any workaround/alternative?

Thanks!

Jeff

Parents Reply Children
Related