I am having a strange issue with my custom radio protocol. I have ported the code to the 52840 and SDK15 from the nrf51822 where it is running with no issues.
The issue is that everything runs correctly when using the J-Link debugger. as soon as I disconnect the J-Link and perform a battery pull, the system will enter a boot loop. So far I have tracked it down (with LED blink signals, since it works again once I connect the debugger) to a point where the RADIO_IRQHandler is not being called after the battery pull.
The sequencs is like this (with SEGGER SES):
Debug->Run ---> works!
pull battery and re-insert ----> bootloop
Target->Reconnect J-Link ----> works fine after next boot!
Here is my Handler:
and this is how I enable the interrupts:
Is there any known mechanism how the interrupts would become disabled after a battery pull? And what does the J-Link change that it works again?