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

No Interrupts on nRF51822 w/S110

Hi,

Can I stop interrupts for 2ms in an orderly manner without crashing the S110?

Thanks,

Parents
  • Hi Antonio

    Yes, you can close down the S110 stack and do some processing before enabling it again, but any running connection with the master will be disconnected. In other words you will have to reconnect after you wake up again.

    How long it takes to enable the stack is a bit application specific (depending on how many services you configure and so forth), but we did some testing on the heart rate example showing the start up delay to be around 5ms.

    The good news is that we are working on a new SoftDevice API that would allow you to request time slots in which you are guaranteed not to be interrupted by the stack. With this feature you could simply ask for a time slot from the stack, and the stack would find a free time slot in between any scheduled BLE events. Then you could run 2ms of blocking code without having to worry about issues, and without having to disable the stack and break existing connections.

    Regards Torbjørn

  • Awesome, Torbjørn!!! :-)

    Do you have a time frame for this new version? Do you have an alpha or beta that I could test?

    btw, I have to do this because the Master SPI does not have DMA. Any plans in the future?

    Thanks, Antonio.

Reply Children
No Data
Related