No heap space for incoming notifications

We have an application running on an nRF9160 development board (shortly to be ported to a production board), which listens on a serial link for sensor data, which is then sent via udp/dtls, via NB-IoT.

The development board is connected to a serial terminal for diagnostics.

After several messages have been sent there's a warning message printed out on the console:

"W: No heap space for incoming notification: +CSCON: 0"

or

"W: No heap space for incoming notification: +CSCON: 1"

I've tried doubling heap space and also system workqueue stack size in prj.conf 

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
However this has made no difference.
There is no apparent impact on the application itself, but I would of course prefer to properly handle whatever is causing the warning.
Help with this would be appreciated. Thanks.
Parents
  • Heap is that part of the RAM, which is used for alloc/free.

    Stack is that part, where the function local variables and sometimes the parameters (if not passed in register) are allocated and freed on return of that function.

    Though the error message is "No heap space", I would assume, that it requires to use a larger value for "CONFIG_HEAP_MEM_POOL_SIZE".

    I checked it with a app I use, there it is "CONFIG_HEAP_MEM_POOL_SIZE=16384".

Reply
  • Heap is that part of the RAM, which is used for alloc/free.

    Stack is that part, where the function local variables and sometimes the parameters (if not passed in register) are allocated and freed on return of that function.

    Though the error message is "No heap space", I would assume, that it requires to use a larger value for "CONFIG_HEAP_MEM_POOL_SIZE".

    I checked it with a app I use, there it is "CONFIG_HEAP_MEM_POOL_SIZE=16384".

Children
Related