完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我使用的PSoC 5的一个项目,想知道用多少堆栈存储器。有人知道效用函数用于这个目的吗? 我现在分配8K型堆栈,认为它应该是足够的但想知道它实际上是什么比例。希望不要发布产品后有一个堆栈溢出问题。 我已经用0x55填充内存堆栈做同样的checkingfor PSoC 1项目检查堆栈内存运行到后几天的项目做产品的所有功能。我知道这不是100%不得行使最大的组合,但是它给至少一个更好的价值比只是客串。 任何一个与GCC ARM编译器的经验告诉我如何做得到?还是可以使用的实用函数? 谢谢 劳伦斯 以上来自于百度翻译 以下为原文 Hi, I have a project using PSoC 5 and would like to know how much stack memory is being used. Does anyone aware of utility function for this purpose? I am now assigning 8k for the stack and think it should be enought but would like to know what percentage it acutally is being used. Don't want to have a stack overflow problem after releasing the product. I have do the same checking for a PSoC 1 project by filling the stack RAM with 0x55 and check the stack RAM after runing to project for a few days and try to perform all the function of the product. I know it is not 100% as it may not exercise the wrost combination but it would give at least a better value than just guesting. Any one has experience with GCC ARM compiler to show me how it can be done? or utility functions that can be used? Thanks Lawrence |
|
相关推荐
4个回答
|
|
|
我也有类似的问题。我精疲力尽,自己用处不大。当你编译和链接你的程序,你可以看到在输出窗口中使用多少的SRAM
闪存使用:262144字节(73320)中的28%个。SRAM使用:65536个字节中的59776个(91.2%)。 现在我想知道什么内存位于59776字节中。我有一个项目,FreeRTOS,ToothHeAPHLIZE=8192 我不知道所有的内存分配。我想a.lst文件看什么变量和数组的分配。 以上来自于百度翻译 以下为原文 I have a similar issue. I'm out of RAM and havn't used much (myself). After you have compiled and linked yor program you can see in the output window how much sram is used Flash used: 73320 of 262144 bytes (28.0 %). SRAM used: 59776 of 65536 bytes (91.2 %). I want to now what memory areas reside in the 59776 bytes. I have a project with FreeRTOS, the TOTAL_HEAP_SIZE = 8192 I cannot find where all that memory is allocated. I would like a .lst file to see what variables and arrays are allocated. |
|
|
|
|
|
我在调试目录中找到了我寻找的信息..map文件。我还发现了(Debug)数组,它占用了内存:很好地找到原因。
以上来自于百度翻译 以下为原文 I found the file with the information I looked for, the .map file in the debug directory. I also found the (debug) arrays that took the memory, :) allways nice to find the cause. |
|
|
|
|
|
您可能想检查这个线程,HTTP//www2.CyPress?COM/?APP =论坛和RID=56286
以上来自于百度翻译 以下为原文 You might want to check this thread, http://www2.cypress.com/?app=forum&rID=56286 |
|
|
|
|
|
我已经为PSoC 1项目做了同样的检查,通过用0x55填充堆栈RAM,并在运行几天之后检查堆栈RAM,并尝试执行产品的所有功能。
如何用0x55填充堆栈RAM,然后再检查它?我正在使用PSoC4,但是我假设命令类似吗? 以上来自于百度翻译 以下为原文 I have do the same checking for a PSoC 1 project by filling the stack RAM with 0x55 and check the stack RAM after runing to project for a few days and try to perform all the function of the product.How do you fill the stack RAM with 0x55 and then check it later? I'm using PSoC4 but I assume the command is similar? |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2474 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2073 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 01:53 , Processed in 0.715073 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1608