Hi all!
load the project (Con.out) for console below:
SYSBIOS_C6748:CIO
[674x_0]ti.sysbios.heaps.HeapMem:line 307:handle=0xc0345000,size=10000
Task_create() failed for Con conversion!
is sysbios heapmem what have error?
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all!
load the project (Con.out) for console below:
SYSBIOS_C6748:CIO
[674x_0]ti.sysbios.heaps.HeapMem:line 307:handle=0xc0345000,size=10000
Task_create() failed for Con conversion!
is sysbios heapmem what have error?
Thanks!
cfg Script below:
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule('xdc.runtime.Log');
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory')
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var ti_sysbios_family_c64p_Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
/*
* Program.argSize sets the size of the .args section.
* The examples don't use command line args so argSize is set to 0.
*/
Program.argSize = 0x0;
/*
* Uncomment this line to globally disable Asserts.
* All modules inherit the default from the 'Defaults' module. You
* can override these defaults on a per-module basis using Module.common$.
* Disabling Asserts will save code space and improve runtime performance.
Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
*/
/*
* Uncomment this line to keep module names from being loaded on the target.
* The module name strings are placed in the .const section. Setting this
* parameter to false will save space in the .const section. Error and
* Assert messages will contain an "unknown module" prefix instead
* of the actual module name.
Defaults.common$.namedModule = false;
*/
/*
* Minimize exit handler array in System. The System module includes
* an array of functions that are registered with System_atexit() to be
* called by System_exit().
*/
System.maxAtexitHandlers = 4;
/* System stack size (used by ISRs and Swis) */
Program.stack = 0x10000;
/* Circular buffer size for System_printf() */
SysMin.bufSize = 0x200;
/*
* Create and install logger for the whole system
*/
var loggerBufParams = new LoggerBuf.Params();
loggerBufParams.numEntries = 32;
var logger0 = LoggerBuf.create(loggerBufParams);
Defaults.common$.logger = logger0;
Main.common$.diags_INFO = Diags.ALWAYS_ON;
System.SupportProxy = SysMin;
Can you load and run your application to main() and then use Tools->ROV in CCS to see what size your heap is? How much memory is left when you go to create the task? How big of stack are you specifying for the task?
Todd
Also, is this a duplicate thread of http://e2e.ti.com/support/embedded/tirtos/f/355/p/381163/1361405.aspx#1361405?
cfg Script
Memory .defaultHeapSize =16384 ;
Change memory size: Memory .defaultHeapSize =32768 ;
load SYSBIOS_C6748.out file
console below:
SYSBIOS_C6748:CIO
[C674X_0] OpenCV ERROR: Insufficient memory (Out of memory)
in function cvAlloc, C:/opencv_dsp/cxcore/src/cxalloc.cpp(118)
Terminating the application...
Assertion failed, (0), file C:/opencv_dsp/cxcore/src/cxerror.cpp, line 373
It looks like your heap is not larger enough or you have a memory leak. Once the application is at main, can you look in Tools->ROV in CCS to see the size of the heap? Then as you execute more, you can see if the free memory in the heap is getting smaller. You can also enable HeapTrack. This will heap find memory leaks. Please read the BIOS User Guide for more details about HeapTrack.
Todd