野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11341|回复: 4

内存空间不足问题

[复制链接]
发表于 2020-3-11 11:23:56 | 显示全部楼层 |阅读模式
调试工程时出现:
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f40_41xxx.o(STACK).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.bss).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_stm32f4xx.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f4xx_rcc.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching rand.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching errno.o(.data).
..\OBJ\Template.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..\OBJ\Template.axf: Error: L6407E: Sections of aggregate size 0x62e04 bytes could not fit into .ANY selector(s).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 11 error messages.
"..\OBJ\Template.axf" - 11 Error(s), 0 Warning(s).
该怎么解决呢?
回复

使用道具 举报

发表于 2020-3-13 22:48:12 | 显示全部楼层
定义了大数组?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-14 10:35:38 | 显示全部楼层
嗯,有的,定义了10个数组,请问这个该怎么解决呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-14 10:36:20 | 显示全部楼层

嗯,有的,定义了10个数组,请问这个该怎么解决呢?
回复 支持 反对

使用道具 举报

发表于 2020-3-14 15:47:38 | 显示全部楼层
七夜_k0dBB 发表于 2020-3-14 10:36
嗯,有的,定义了10个数组,请问这个该怎么解决呢?

RAM部分不够了 1.减少数组的定义空间  2.参考F4库教程的外扩SRAM/SDRAM章节  运行时再去划出空间,3 看教程后面MDK章节部分,在数组定义在外扩RAM部分
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-6 08:16 , Processed in 0.042334 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表