用CCS编译TI sys/bios
出现内存溢出(如图所示)
我按照提示,把它的heaps.HeapMem ,内存调高,但无果。下面是.cfg 文件片选。
var heapMem0Params = new HeapMem.Params();
heapMem0Params.instance.name = "heapMem0";
heapMem0Params.size = 32768;
Program.global.heapMem0 = HeapMem.create(heapMem0Params);
但是,参照其他程序,添加下面的.cfg代码
/*
* The BIOS module will create the default heap for the system.
* Specify the size of this default heap.
*/
BIOS.heapSize = 0x2048;
创建堆给BIOS系统。
问题就解决了?
虽然,问题解决了,但是,还不知道为什么是要创建BIOS的堆空间呢?
为什么,我按照它的Console提示,提高heap的空间不行呢?
奉献原代码