Hi Nordic!
I've got an nRF52832DK and use SEGGER Embedded Studio via nRF Connect
I'm trying to familiarize myself with arm's exception handling.
Looking in ses_startup_nrf52.s I see there are many "ISR_RESERVED_DUMMY" entries and I thought I could change one of those to a ISR_HANDLER Test_IRQHandler and use it in my code to use custom interrupts.
In a simple main.c I have the following code
int main(void) {
// LEDs
NRF_P0->DIRSET |= (1 << 17) | (1 << 18) | (1 << 19) | (1 << 20);
NRF_P0->OUTSET |= (1 << 17) | (1 << 18) | (1 << 19) | (1 << 20);
NVIC_ClearPendingIRQ(42);
NVIC_EnableIRQ(42);
NVIC_SetPendingIRQ(42);
while (1)
{
;
}
}
void Test_IRQHandler(void)
{
NRF_P0->OUTCLR = (1 << 18);
}
But LED2 (pin 18) never lit... so I assume that it is not possible or I did something wrong