您的位置: OpenADSP社区论坛 -> Blackfin专区 -> 新手上路 -> memory in output section错误
本帖共有1874个阅读者
发表帖子 发表投票 回复主题
memory in output section错误
kaye_zerone(论坛新手)
kaye_zerone
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:181
积分:13
注册时间:2015/7/23
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
memory in output section错误
在BF512上运行了ucos-ii系统,当任务的栈稍微分配得大一点就出现如下错误:
"..\system\startup_ldf\app.ldf":272 Out of memory in output section 'L1_code' in processor 'p0'

用的开发环境就CCES1.20 使用了外扩的SDRAM当配置system.svc-->LDF-->选用 Use external memory(SDRAM)
时,把调试DEX文件时会出现如下错误:
A fatal error or exception has occurred.
  Description:   Attempted misaligned instruction cache fetch (Exception with EXCAUSE=0x2A).
  General Type:  UnhandledException
  Specific Type: InstructionFetchMisaligned
  General Code:  0x9
  Specific Code: 0x2a
  Error Value:   0x00000000
  Error PC:      0xffa12fde

要不就是这种错误:
Target halted due to software breakpoint but no breakpoint found at address: 0xef00067e
Possible reasons are:
1.An embedded breakpoint (EMUEXCPT instruction) in the code
2.A breakpoint is placed at the last instruction of a do() loop
Warning: External memory is disabled for this region of memory.
Warning: External memory is disabled for this region of memory.

如果system.svc-->LDF-->不选用 Use external memory(SDRAM)也会出现错误:

[Error li1040] "..\system\startup_ldf\app.ldf":272 Out of memory in output section 'L1_code' in processor 'p0'
        Total of 0xac6 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.


[Error li1040] "..\system\startup_ldf\app.ldf":291 Out of memory in output section 'L1_code_cache' in processor 'p0'
        Total of 0xac6 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.

Linker finished with 2 errors
cc3089: fatal error: Link failed (code:1)
make: *** [evaboard.dxe] Error 1


请教斑竹在CCES中使用外扩SDRAM应该怎么配置。


「该帖子被 kaye_zerone 在 2015-08-06 15:47:31 编辑过」

世上无难事,只要肯攀登
等级:论坛新手 参考IP地址:*.*.*.*
2015/8/6 9:54:03
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
我们不用CCES,不知,VDSP下是使用
section("sdram0_bank1")  指令,放在声明的函数或者数组前面。前提是LDF中需要使能SDRAM。并配配置正确的SDRAM容量,你试试CCES下行不行。

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2015/8/8 11:03:40
kaye_zerone(论坛新手)
kaye_zerone
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:181
积分:13
注册时间:2015/7/23
2信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
斑竹,在启动文件.s中怎么用汇编对SDRAM进行初始化。

世上无难事,只要肯攀登
等级:论坛新手 参考IP地址:*.*.*.*
2015/8/12 16:49:57
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
3信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
我们通常用的是 VDSP下的XML文件对内存进行初始化,.S没用过。在VDSP下的system文件夹内,有个文件夹有很多.xml文件。找相应处理器的,名字中带 proc的xml文件,在这里可以添加初始化SDRAM的代码,有的已经添加好了,有的没有,可以多看几个处理器对比一下。

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2015/8/15 23:23:43
Powered by OpenADSP Copyright © 2010 www.Openadsp.com. All rights reserved.159172 Call, 1 Queries, Processed in 0.031250 second(s),