Other Parts Discussed in Thread: BLE-STACK
Hello there,
I'm currently experiencing a strange behaviour regarding SRAM usage. The problem is reproducable, the steps are the following:
1) Open up simple_broadcaster_cc2640r2lp_app and compile it, Memory Allocation should show SRAM consumption of 38%. The program is running fine.
2) Open simple_broadcaster.c and increase the task's stack size to 10000 (SBB_TASK_STACK_SIZE) and compile it, Memory Allocation should show SRAM consumption of 91% (so nearly 2.5kB of free SRAM still left). The program is not running/advertising anymore.
3) Decrease the task's stack size to say 9000 and the program is running again.
Could you tell me what's the cause of this behaviour? Is the remaining SRAM not enough for the heap?
Thanks in advance,
Philipp