View: 8583|Reply: 3

[BLE SDK] 如何判断栈是否溢出

  [Copy link]

6

Threads

3

Replies

41

Credits

Credits
41
Posted on 2024-12-20 14:30:20 | Show all posts |Reading mode From 上海
Information
Notes:   建议参照本版块置顶帖内容输入必要信息
Chip model: 8251
SDK & version: telink_b85m_ble_single_connection_sdk
8251 ram比较小,做应用时候担心ram溢出 该如何判断

145

Threads

343

Replies

1618

Credits

Credits
1618
Posted on 2024-12-20 14:35:54 | Show all posts From 上海
屏幕截图 2024-12-20 143327.png

如上图,在cstartup_825x.S中有FLL_STK_EN,他会把stack全部填充为0xFF。如果stack全部被用完的情况下,读取栈底对应的位置将无法看到连续0xFF。 如果仍有连续的0xFF存在,则没有被用完。

6

Threads

3

Replies

41

Credits

Credits
41
 Author| Posted on 2024-12-20 14:39:22 | Show all posts From 上海
tks,了解了

145

Threads

343

Replies

1618

Credits

Credits
1618
Posted on 2025-9-19 15:12:36 | Show all posts From 上海

Credit rules for this forum

Follow our WeChat
Privacy Policy|Telink Developer Community

For copyright infringement reports, complaints or suggestions, please email forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

inThis forumPostBack to top