This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Gpiote interrupt handler

I am writing an application to read IQ samples from TICC1200 transceiver. For which I am using SPI with easy DMA. nrf52840 acts as master and cc1200 acts as slave. Whenever there is a new sample in cc1200 register it sends an interrupt to nrf52. I have used gpiote interrupt handler.

In handler I call function which reads data from cc1200 register. I have set the interrupt priority of spi event handler to 2 and of GPIOTE to 3. This doesn't work out.

Instead if I set a flag in GPIOTE handler and in main check this flag and then call cc1200 read register function , the code works.

But for my application I need to call it in interrupt handler. Is there a specific reason why spi and gpiote handlers don't work as nested interrupts

Related