Can s140 softdevice prevent interrupts from working?

In my project I have bluetooth and the nRF-IEEE-802.15.4-radio-driver working simultaneously.

Part of the functionality requires a response to falling edges occurring on two IO lines at exactly the same time. I do this by using GPIOTE on those lines to trigger a timer capture. I then read the captures in the state change ISRs for those lines. If the captures are the same then I do the response. This works perfectly when just 802.15.4 is compiled in.

However when I compile the soft device in, I start to lose responses on a apparently random basis. This occurs even if not advertising bluetooth.

To stress it I am doing the falling edges every 2ms. I'm seeing a single loss of response over a number of minutes so its very infrequent.

At the moment I can't say whether the captures are not correct or if the ISRs have not fired. I'll be doing more testing tomorrow.

But is there anything anyone can think of I might of missed? Just to clarify when it is just the 802.15.4 then there is not a problem.

kind regards

Liam

Parents
No Data
Reply
  •  Hi Liam,

    Are you using port events or in events for handling GPIOTE events?

    At the moment I can't say whether the captures are not correct or if the ISRs have not fired. I'll be doing more testing tomorrow.

    You should try using PPI to toggle a GPIO pin when a ISR event have been fired.

    Best regards,

    Marjeris

Children
No Data
Related