您的位置: OpenADSP社区论坛 -> Blackfin专区 -> 技术讨论区 -> [求助]Out of memory in output section
本帖共有1222个阅读者
发表帖子 发表投票 回复主题
[求助]Out of memory in output section
longyi2003(论坛新手)
longyi2003
头衔:社区公民
帮派:无帮无派
帖数:16
金钱:250
积分:24
注册时间:2012/11/15
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
[求助]Out of memory in output section

andy你好,请问这个错误怎么解决啊?

[Error li1040] "C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin/ldf/adsp-BF533.ldf":517 Out of memory in output section 'L1_data_b' in processor 'p0'
        Total of 0x3d090 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.


[Error li1040] "C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin/ldf/adsp-BF533.ldf":585 Out of memory in output section 'L1_data_a' in processor 'p0'
        Total of 0x3d090 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.



「该帖子被 longyi2003 在 2013-01-06 16:06:13 编辑过」

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/1/6 15:55:41
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线

你的工程可能没有添加LDF文件,你在VDSP中工程上按右键,选择“工程选项”,在左边菜单最后有个添加LDF的,选上后会多出很多菜单,选择LDF下第一个菜单,把“使用SDRAM”勾上,然后选一个和你硬件匹配的SDRAM大小。再编译代码就好了。

如果编译后还报错,你可以在你定义的大数组前加上 section("sdram0_bank1")   ,将你的数组指定到SDRAM BANK1地址就行了。




这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/1/6 16:26:35
longyi2003(论坛新手)
longyi2003
头衔:社区公民
帮派:无帮无派
帖数:16
金钱:250
积分:24
注册时间:2012/11/15
2信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
谢谢andy,搞定了。添加个ldf就可以了。

这家伙很懒,什么也没有留下!
等级:论坛新手 参考IP地址:*.*.*.*
2013/1/6 16:37:35
liuhai2200(论坛新手)
liuhai2200
头衔:社区公民
帮派:无帮无派
帖数:69
金钱:636
积分:84
注册时间:2012/8/12
3信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
为什么我在L1、sml2、sml3中都屏蔽掉一些buff,未映射的大小仍然没有改变,link 还是会报错。

完成梦想
等级:论坛新手 参考IP地址:*.*.*.*
2014/5/10 15:39:03
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
4信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
可能你溢出的buffer,放不到已经删除的buffer空间内,编译器仍将其分配到片外。

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2014/5/14 21:36:31
Powered by OpenADSP Copyright © 2010 www.Openadsp.com. All rights reserved.154152 Call, 1 Queries, Processed in 0.031250 second(s),