Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法
来源:互联网 发布:python datetime 减法 编辑:程序博客网 时间:2024/06/08 09:55
参考网址
http://blog.csdn.net/zxzxzxzx2121/article/details/43796297
情景:
在编译Keil工程时,compile编译能够通过,但在linking过程中,出现一大串”Error: L6406W: No space in execution regions with .ANY selector match Section“的错误。
分析:
这个出现的原因是因为芯片RAM空间不足,无法执行程序。通常RAM的空间会比较小,ROM空间相对较大。
解决办法:
两个思路,一个是扩大RAM,二是减少需要存在RAM里的内容:
1. 尝试修改”Target Options“中右侧RAM的Size,但这个要先查看芯片文档,找到文档中描述的RAM大小,把Size调成最大值。
但是我的这个工程还是不行,看来是预存的数据量太大了。
2. 如果第一种方法还是不行,那就只能尝试把一些数据类的变量定义为静态,这样就可以利用ROM的存储空间了。找到工程中存储数据的部分,发现是大量的float数组。这种情况会占用大量的空间,所以要在float声明的前面加一个”const“,转换为静态变量。
这样我的就可以通过了,成功生成了hex文件。
3. 如果第二种方法还是不行,那就只能修改代码的数据结构了。
阅读全文
0 0
- Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法
- Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法
- Keil 链接错误 Error: L6406E: No space in execution regions with .ANY selector matching
- KEIL在Build的时候提示Error:L6406E:No space in execution regions with .ANY selector matching 错误
- no space in execution regions with .any selector matching
- No space in execution regions with .ANY selector matching
- .\Opt\TMES.axf: Error: L6406E: No space in execution regions with .ANY selector matching indicate_se
- Error: L6406E: No space in execution regions with .ANY selector matching
- .\Obj\main.axf: Error: L6406E: No space in execution regions with .ANY selector matching sin_i.o(.co
- MDK在链接时提示空间不够(No space in execution regions with .ANY selector... )解决方案
- MDK在链接时提示空间不够(No space in execution regions with .ANY selector... )的解决方案总结
- MDK在链接时提示空间不够(No space in execution regions with .ANY selector... )的解决方案总结
- MDK在链接时提示空间不够(No space in execution regions with .ANY selector... )的解决方案总结
- No space in execution regions with .ANY selec错误的解决
- Keil RealView MDK在链接时提示空间不够的解决方案总结 keil: Error: L6406E: No space in execution regions with
- 移植FreeRTOS,出现No space in execution regions溢出错误。
- 关于Keil编译错误 L6236E: No section matches selector - no section 的解决方法
- Keil编译错误:L6236E: No section matches selector - no section的解决方法
- (CSU
- 数据库Timestamp类型查询
- 复习:H5新标签
- 各种USB接口及其封装
- PHP 正则表达式介绍
- Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法
- Java数据类型(收藏)
- WPF布局该如何选用
- implement-strstr
- Mysql解除正在死锁的状态
- ORA-02292: 违反完整约束条件 (MIDBJDEV2.SYS_C0020757)
- ScrollView嵌套其他布局时不能达到全屏的效果
- 九度oj 专题整理(模拟部分3)
- 文献计量学指标应用的四个群体