Hi Team,
Is there any way to enable/disable all interrupts? Will BLE connection get disconnected because of this? If yes the what are the possible ways to maintain the connection?
Hi Team,
Is there any way to enable/disable all interrupts? Will BLE connection get disconnected because of this? If yes the what are the possible ways to maintain the connection?
What problem are you actually trying to solve?
Bottom line - you can't do it. The max period you can disable interrupts is ZERO, you may not disable interrupts when the softdevice is running, not for 1ms, not for 1us, not at all, not ever. That is the contract you make with the softdevice. You cannot do time-sensitive operations with the softdevice running. Period.
I wrote this post a week or so outlining how someone could try to use the Multiprotocol Timeslot API which gives you occasional, irregular, small slots of time during which you can do what you like, to bitbang out 1 or 2 or 3 characters over a UART, then shut everything down and wait for the next time it gives you a slot and do the next few. That's theoretically possible, it would be very hard to implement, you'd get very irregular transmission. My eventual suggestion was to use a separate UART chip.
Bottom line - you can't do it. The max period you can disable interrupts is ZERO, you may not disable interrupts when the softdevice is running, not for 1ms, not for 1us, not at all, not ever. That is the contract you make with the softdevice. You cannot do time-sensitive operations with the softdevice running. Period.
I wrote this post a week or so outlining how someone could try to use the Multiprotocol Timeslot API which gives you occasional, irregular, small slots of time during which you can do what you like, to bitbang out 1 or 2 or 3 characters over a UART, then shut everything down and wait for the next time it gives you a slot and do the next few. That's theoretically possible, it would be very hard to implement, you'd get very irregular transmission. My eventual suggestion was to use a separate UART chip.