OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2811|回复: 2

freeRTOS TOTAL_HEAP_SIZE 问题

[复制链接]

2

主题

6

帖子

0

精华

初级会员

Rank: 2

积分
60
金钱
60
注册时间
2016-6-12
在线时间
12 小时
发表于 2020-4-9 16:16:29 | 显示全部楼层 |阅读模式
1金钱
#define configMINIMAL_STACK_SIZE                 ((uint16_t)128)
#define configTOTAL_HEAP_SIZE                    ((size_t)5*1024) 这个不能超过8k

超过8K IAR 报错

Building configuration: OutBound - OutBound
Updating build tree...
portasm.s
event_groups.c  
agreementManage.c  
croutine.c  
cmsis_os.c  
freertos.c  
heap_4.c  
list.c  
main.c  
port.c  
sim800.c  
stm32f1xx_it.c  
queue.c  
stream_buffer.c  
timers.c  
tasks.c  
Linking
Error[Lp011]: section placement failed
            unable to allocate space for sections/blocks with a total estimated minimum size of 0x5ba8 bytes (max align 0x8) in <[0x2000'0000-0x2000'4fff]> (total  
uncommitted space 0x5000).
Error[Lp021]: the destination for compressed initializer batch "P2-1" is placed at an address that is dependent on the size of the batch, which is not allowed when  
using lz77 compression. Consider using "initialize by copy with packing = zeros" (or none) instead.
Error while running Linker

Total number of errors: 2
Total number of warnings: 0


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

6

帖子

0

精华

初级会员

Rank: 2

积分
60
金钱
60
注册时间
2016-6-12
在线时间
12 小时
 楼主| 发表于 2020-4-9 16:17:26 | 显示全部楼层
我目前在C8T6的片子上遇到这个问题 照道理 20K的RAM 10个1024 应该没有问题的呀?
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165524
金钱
165524
注册时间
2010-12-1
在线时间
2116 小时
发表于 2020-4-10 01:27:33 | 显示全部楼层
f171226061 发表于 2020-4-9 16:17
我目前在C8T6的片子上遇到这个问题 照道理 20K的RAM 10个1024 应该没有问题的呀?

改小,然后看下map文件?
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-5-25 00:50

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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