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

SWI2_IRQHandler causing NRF_ERROR_NO_MEM

I have found that when I try and initial the Softdevice to use the Scheduler, shortly after initialization and right before dm_init() runs, I get an NRF_ERROR_NO_MEM error asserting which is stemming from the SWI2_IRQHandler in softdevice_handler.c (line 306). I have my scheduler queue size set to 30 but the error still persists. There isn't any other code which should generate scheduler events before this occurs except from the SoftDevice. Therefore I must suspect the Softdevice is fill up the queue. I cannot increase the queue size any more as I get RAM overflow errors. So I'm at a bit of a loss to find the root cause of this error. As a temporary work around I no longer use the scheduler with the Softdevice, but I would really like to solve this one. Thanks for the help folks.

DC

Parents
  • Hi RK,

    I tried adding a catch loop and running on a Release version of firmware. It doesn't seem to hit the loop, thus it seemed to be related to running and debugging Debug version of the code. Still unsettling, but seems to be fine now.

    I've still initialize the Stack without the Scheduler now to try and keep the event queue count lower. Trying to track down the bug in my other thread you're helping me with. I supposed I can close this one for now. Thanks for your help RK

    DC

Reply
  • Hi RK,

    I tried adding a catch loop and running on a Release version of firmware. It doesn't seem to hit the loop, thus it seemed to be related to running and debugging Debug version of the code. Still unsettling, but seems to be fine now.

    I've still initialize the Stack without the Scheduler now to try and keep the event queue count lower. Trying to track down the bug in my other thread you're helping me with. I supposed I can close this one for now. Thanks for your help RK

    DC

Children
No Data
Related