TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310: 查看任务堆栈大小

Part Number:CC1310Other Parts Discussed in Thread:WMBUS

请问有没有能获取当前任务堆栈使用情况的API,历史最高使用堆栈大小的API等

Alex Zhang:

https://dev.ti.com/tirex/explore/node?node=A__ACOj6WhXkFLx5hBeJ980nA__com.ti.SIMPLELINK_CC13XX_CC26XX_SDK__BSEc4rl__LATEST

这个链接提供了查看堆栈大小的方法

Introduction — Runtime Object View documentation

更为细节的是这个 希望可以帮助到您

,

? ?:

有没有能直接读取的API呢,还是只能通过debug。

,

Alex Zhang:

我这边帮您查找了一下,目前来看,没有您说的这种api函数,您可以再查找一下,我给您提供了链接

https://dev.ti.com/tirex/content/simplelink_cc13x0_sdk_4_20_02_07/docs/tirtos/sysbios/docs/cdoc/index.html

希望可以帮助到您

,

? ?:

我这边用ccs去debug会报这个错误

Cortex_M3_0: Failed Board Reset: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: no XDS100 is plugged in, invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 9.11.0.00128) Cortex_M3_0: GEL: Error while executing StartUp( 12, 3, 0, 3006 ): Reset failed: retcode=-1 at GEL_AdvancedReset("Board Reset") [cc26x0.gel:29] at StartUp(12, 3, 0, 3006)IcePick_C: Error connecting to the target: (Error -151 @ 0x0) One of the FTDI driver functions used during the connect returned bad status or an error. The cause may be one or more of: no XDS100 is plugged in, invalid XDS100 serial number, blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable. Use the xds100serial command-line utility in the 'common/uscif' folder to verify the XDS100 can be located. (Emulation package 9.11.0.00128)

,

Alex Zhang:

https://dev.ti.com/tirex/content/simplelink_cc13x0_sdk_4_20_02_07/docs/tirtos/sysbios/docs/Bios_User_Guide.pdf

你可以看一下这个

,

Alex Zhang:

可能存在以下问题:

没有连接XDS100,或者驱动并未安装。
XDS100序列号无效,或EEPROM中没有存储序列号。
缺少FTDI驱动程序,或者驱动程序安装不正确。
USB电缆有问题。

,

? ?:

我现在遇到问题了,怀疑是堆栈移除,需要查看堆栈是否溢出。

我用例程试了可以debug,但是我把我的一些代码加进去后debug就报错。应该和接线驱动等无关。

,

Alex Zhang:

您好,我将继续跟进您这边的问题,请稍等一些时间,谢谢。

,

Alex Zhang:

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/743052/cc1310-stacksize

您这边可以参考这个帖子,以及以下方法

dev.ti.com/…/tirtos_basics.html

,

? ?:

这个堆栈监控怎么添加自己的任务呢

,

? ?:

我使用的SDK是wmbus_cc13x0_rtos_2_0_0 + simplelink_cc13x0_sdk_2_20_00_38

,

? ?:

创建了两个任务 ,但是监控里一个都搜不到

,

Alex Zhang:

Alex Zhang 说:

https://dev.ti.com/tirex/explore/node?node=A__ACOj6WhXkFLx5hBeJ980nA__com.ti.SIMPLELINK_CC13XX_CC26XX_SDK__BSEc4rl__LATEST

这个链接提供了查看堆栈大小的方法

Introduction — Runtime Object View documentation

更为细节的是这个 希望可以帮助到您

在这里为您提供了教程

,

? ?:

好的,十分感谢。

我这边发现  ISR Stack红了,这个是什么意思,堆栈溢出了吗,溢出的话是不是直接进入系统错误了

,

Alex Zhang:

对的 是堆栈溢出了,

在实际应用中,ISR Stack 溢出可能会导致系统崩溃或者数据损坏等问题,因此需要进行充分测试和验证

您可以试着使用以下方法解决问题 :增加 ISR Stack 大小、减少中断处理时间、使用静态分配或全局变量

,

? ?:

如果堆栈溢出的话,是直接进入系统错误吗,还是会接着跑主程序

,

Alex Zhang:

堆栈溢出发生时,通常会导致系统异常或者死机。这是因为栈溢出会破坏程序的数据结构和内存空间,可能会覆盖其他重要的变量、指针等,造成程序逻辑混乱甚至崩溃。

,

? ?:

好的谢谢

赞(0)
未经允许不得转载:TI中文支持网 » CC1310: 查看任务堆栈大小
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1