Part Number:EVMK2G
Tool/software: TI-RTOS
Hello, I'm trying to get up and running on a new EVMK2G. I've been able to run the basic Hello World stuff, but I've been unable to get an McASP demo working from the PDK directory. I used pdkprojectcreate to generate the McASP demo projects. I've been focusing on the MCASP_Audio_evmK2G_armExampleProject. It compiles and runs, but doesn't do anything. A quick look at the code reveals this:
#if defined (SOC_J721E) Task_Params taskParams; Task_Handle taskHandle; Error_Block eb; Task_Params_init(&taskParams); taskParams.stackSize = 0x4000; taskParams.priority = 5; taskParams.instance->name = "Audio_echo_Task"; taskHandle = Task_create((ti_sysbios_knl_Task_FuncPtr)Audio_echo_Task, &taskParams, &eb); if (NULL == taskHandle) { Log_info0("\r\nFailed to create Audio echo task!\n"); BIOS_exit(0); } #endif
So, on a K2G, the task initializing code gets ifdefed out. Getting rid of the ifdef/endif results in code that compiles, but task create fails with a memory error:
[CortexA15] ti.sysbios.heaps.HeapMem: line 221: out of memory: handle=0x80042d2c, size=16384
xdc.runtime.Memory: line 52: out of memory: heap=0x0, size=16384
I haven't yet dug into it to see what's going on, but I'm hoping there's a working example out there I can start with? I can only findaudio examples using the audio daughter board, which I currently don't have (and don't really need - stereo in/out is all I need).