This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于BLE-cc254x-1.3.2协议栈到底需要多少栈空间的问题

我改写了SimpleBLEPeripheral的代码。偶尔出现死机的问题。

我想看看是不是栈溢出了。研究了一下栈的空间大小。

我按照网上说的方法,在map文件里看栈的最大使用空间

->Sub-tree of type: Function tree
XSTACK ISTACK
| Stack used (prev) : 0000139F 000000B9
01 _formatted_write::?relay
| Stack used (prev) : 0000139F 000000B9
| + function block : 00000000 00000000
<-Sub-tree of type: Function tree
| Stack used : 0000139F 000000B9

需要0x139F,这么大吗?

而,stack/heap中的设置XDATA是系统默认的0x280

明显不够啊,就算我什么都不改,SimpleBLEPeripheral本身也是不够的。

我的问题是

1、怎么在IAR中看到底需要多少栈空间,静态的那种,不算中断

2、系统默认的0x280的栈空间够吗?

有知道的兄弟吗?谢谢了