上海1对3 OS内存上限测试 IAR

#define configTOTAL_HEAP_SIZE                    ((size_t)100*1024)


最后编译问题如下:
Linking 
Error[Lp011]: section placement failed 
            unable to allocate space for sections/blocks with a total estimated minimum size of 0x1'cad0 bytes (max align 0x4) in <[0x2000'0000-0x2001'7fff]> (total  
uncommitted space 0x1'8000). 
Error[Lp021]: the destination for compressed initializer batch "P6-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[Lp021]: the destination for compressed initializer batch "P6-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[Lp021]: the destination for compressed initializer batch "P6-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[Lp021]: the destination for compressed initializer batch "P6-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: 5 
Total number of warnings: 3 

0X18000 = 98304 = 96 * 1024
也就是我的SRAM 最大是96K 你肯定不能给他100K 修改如下
#define configTOTAL_HEAP_SIZE                    ((size_t)96*1024)
问题依旧 
经过测试最大是: 81

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值