Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.data).解决办法

Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.data).:解决办法

背景:在GD32F103CBT6上移植FreeRTOS时候报错如下:

linking...
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching heap_4.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching startup_gd32f10x_md.o(STACK).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart_cfg.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching iohard_cfg.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching queue.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching tasks.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching iohard_cfg.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching fan.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching timers.o(.bss).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching heap_4.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching timers.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching freertos_main.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching port.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_gd32f10x.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart_cfg.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6406E: No space in execution regions with .ANY selector matching usart_func.o(.data).
..\Output\GD32F103_GC_V1_00.axf: Error: L6407E: Sections of aggregate size 0x8658 bytes could not fit into .ANY selector(s).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
	}

使用RET6的FreeRTOSConfig.h配置文件,查了一下CB系列的Flash为128k,RE系列Flash为512k,
盲猜一手:应该是Flash中堆栈分配不适配,导致.bss段和.data段空间不够导致的。
在这里插入图片描述
堆区总大小:30k?有点离谱,改10k试试,

问题解决:

在这里插入图片描述
后来查了一下,移植OS时使用了Malloc申请堆区过大导致的,所以要根据实际环境分配内存大小

  • 15
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值