STM32报错:No space in execution regions with .ANY selector matching

本文详细解析了在KEIL环境下遇到的芯片空间不足错误,并提供了有效的解决方案,包括选择更大空间的芯片型号和调整内存分配大小。
部署运行你感兴趣的模型镜像

 原因很明显,就是 芯片的 空间不足。解决方法是  在KEIL 的DEVICE中选择 更大的空间的芯片型号,或者尝试减少工程内不必要的*.c文件,

..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_stm32f10x_hd.o(HEAP).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching exfuns.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.bss).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching libspace.o(.bss).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching touch.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching fontupd.o(.bss).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching malloc.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching fontupd.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching ili93xx.o(.bss).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching ff.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching delay.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching ili93xx.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching flash.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart2.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching diskio.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching key.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching mmc_sd.o(.data).
..\OBJ\VoiceProject.axf: Error: L6406E: No space in execution regions with .ANY selector matching ott2001a.o(.data).
..\OBJ\VoiceProject.axf: Error: L6407E: Sections of aggregate size 0x544 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 20 error messages.
"..\OBJ\VoiceProject.axf" - 20 Error(s), 0 Warning(s).
Target not created.

多方排查发现是我内存分配的函数里面分配空间太多所致: 

#define MEM_MAX_SIZE            42*1024                          //最大管理内存 42K

改为20k就行。

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值