#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