现在的位置: 首页 > 综合 > 正文

keil 报错“空间不够”分析

2019年03月23日 ⁄ 综合 ⁄ 共 1043字 ⁄ 字号 评论关闭

我遇到的问题:
Error: L6406E: No space in execution regions with .ANY selector matching font_hz1616.o(.constdata).
Error: L6407E: Sections of aggregate size 0x1d580 bytes could not fit into .ANY selector(s).

分析:
stm32f103vct6空间大小:256K flash(0x40000),48k RAM(0xc000)
(工程中还有一个中文字符编码文件,不知道是不是因为这个,所以地方不够了)
当_CODE_PAGE 定义为936时,会在其他文件处报错空间不够
(这个报错有问题,不能准确定位有哪些地方一起作用使地方不够,只能报某一个地方)。
(值得注意的是——(.constdata))
解决办法:
把_CODE_PAGE 定义成437之类的占用小、非DBCS就行了。
注:_CODE_PAGE 是什么?用来选择文件用什么编码方式显示。

别人遇到的:

RealView MDK在链接时提示空间不够的解决方案总结

http://blog.csdn.net/ropai/article/details/7492922

Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f0xx.o(STACK).
Error: L6407E: Sections of aggregate size 0x400 bytes could not fit into .ANY selector(s).

http://bbs.csdn.net/topics/390249083

Error: L6406E: No space in execution regions with .ANY selector matching ecgsyn.o(.bss).
Error: L6407E: Sections of aggregate size 0x4230 bytes could not fit into .ANY selector(s).

http://www.keil.com/forum/19067/

解决方案(不适合我的情况):http://www.embedinfo.com/wen-list.asp?id=342

http://www.openedv.com/posts/list/10573.htm

我就是想说:报错不太一样——.constdata,STACK,.bss。有空再说~

【上篇】
【下篇】

抱歉!评论已关闭.