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.

Problem with the connection PlatformLib

Other Parts Discussed in Thread: TMS320C6678, SYSBIOS

Hi All,
I use to TMS320C6678 with SEED-XDS560-v2 usb emulator.
I want use XGCONF to configure my project.
I have a problem with the connection PlatformLib to my project.
I have next configuration file
/* It is my cfg file*/
var Memory = xdc.useModule('xdc.runtime.Memory');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
var Log = xdc.useModule('xdc.runtime.Log');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Cache = xdc.useModule('ti.sysbios.family.c66.Cache');

Task.common$.namedInstance = true;
var Clock = xdc.useModule ('ti.sysbios.knl.Clock');
var Sem = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var Ecm = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
var Diag = xdc.useModule('xdc.runtime.Diags');

var Csl = xdc.useModule('ti.csl.Settings');
Csl.useCSLIntcLib = true;
var Cppi = xdc.loadPackage('ti.drv.cppi');
var Qmss = xdc.loadPackage('ti.drv.qmss');
var Pa = xdc.loadPackage('ti.drv.pa');

var PlatformLib = xdc.loadPackage('ti.platform.evmc6678l');
var NdkTransport = xdc.loadPackage('ti.transport.ndk');

var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var Exc = xdc.useModule('ti.sysbios.family.c64p.Exception');
Exc.common$.logger = LoggerBuf.create();
Exc.enablePrint = true; /* prints exception details to the CCS console */

var Global = xdc.useModule('ti.ndk.config.Global');
Global.enableCodeGeneration = false;

var Startup = xdc.useModule('xdc.runtime.Startup');
var System = xdc.useModule('xdc.runtime.System');

var heapMemParams1 = new HeapMem.Params();
heapMemParams1.size = 8192 * 30;
heapMemParams1.sectionName = "systemHeap";
Program.global.heap0 = HeapMem.create(heapMemParams1);

/* Memory map */
Memory.defaultHeapInstance = Program.global.heap0;
Program.sectMap["sharedL2"] = "DDR3";
Program.sectMap["systemHeap"] = "DDR3";
Program.sectMap[".sysmem"] = "DDR3";
Program.sectMap[".text"] = "DDR3";
Program.sectMap[".const"] = "DDR3";
Program.sectMap[".args"] = "DDR3";
Program.sectMap[".cio"] = "DDR3";
Program.sectMap[".far"] = "DDR3";
Program.sectMap[".rodata"] = "DDR3";
Program.sectMap[".neardata"] = "DDR3";
Program.sectMap[".qmss"] = "DDR3";
Program.sectMap[".cppi"] ="DDR3";
Program.sectMap[".init_array"] = "DDR3";
Program.sectMap[".cinit"] = "DDR3";
Program.sectMap[".bss"] = "DDR3";
Program.sectMap[".switch"] = "DDR3";
Program.sectMap[".data"] = "DDR3";
Program.sectMap[".fardata"] = "DDR3";
Program.sectMap[".vecs"] = "DDR3";
Program.sectMap["platform_lib"] = "DDR3";

Program.sectMap[".far:taskStackSection"] = "L2SRAM";
Program.sectMap[".stack"] = "L2SRAM";
Program.sectMap[".nimu_eth_ll2"] = "L2SRAM";
Program.sectMap[".resmgr_memregion"] = {loadSegment: "L2SRAM", loadAlign:128}; /* QMSS descriptors region */
Program.sectMap[".resmgr_handles"] = {loadSegment: "L2SRAM", loadAlign:16}; /* CPPI/QMSS/PA Handles */
Program.sectMap[".resmgr_pa"] = {loadSegment: "L2SRAM", loadAlign:8}; /* PA Memory */
Program.sectMap[".far:IMAGEDATA"] = {loadSegment: "L2SRAM", loadAlign: 8};
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: "L2SRAM", loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: "L2SRAM", loadAlign: 128};

SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;
Startup.lastFxns.$add('&EVM_init');

and I have c - function (from ti/mcsdk_2_01_02_06/examples/ndk/client/client.c
void EVM_init()
{
printf("\nEVM_init with my modification\n");
platform_init_flags sFlags;
platform_init_config sConfig;

int32_t pform_status;

memset( (void *) &sFlags, 0, sizeof(platform_init_flags));
memset( (void *) &sConfig, 0, sizeof(platform_init_config));

sFlags.pll = 0; /* PLLs for clocking */
sFlags.ddr = 0; /* External memory */
sFlags.tcsl = 1; /* Time stamp counter */
#ifdef _SCBP6618X_
sFlags.phy = 0; /* Ethernet */
#else
sFlags.phy = 1; /* Ethernet */
#endif
sFlags.ecc = 0; /* Memory ECC */

sConfig.pllm = 0; /* Use libraries default clock divisor */
pform_status = platform_init(&sFlags, &sConfig);
if (pform_status != Platform_EOK) {
while (1) {
(void) platform_led(1, PLATFORM_LED_ON, PLATFORM_USER_LED_CLASS);
(void) platform_delay(50000);
(void) platform_led(1, PLATFORM_LED_OFF, PLATFORM_USER_LED_CLASS);
(void) platform_delay(50000);
}
}
}
Into runtime I have next:
Can't find a source file at "/home/gtbldadm/ti/pdk_C6678_1_1_2_6/packages/ti/csl/csl_cpsgmiiAux.h"
Locate the file or edit the source lookup path to include its location.
Can't find a source file at "/home/gtbldadm/ti/pdk_C6678_1_1_2_6/packages/ti/csl/csl_cpsgmiiAux.h"
Locate the file or edit the source lookup path to include its location.
Can't find a source file at "/home/gtbldadm/ti/pdk_C6678_1_1_2_6/packages/ti/platform/evmc6678l/platform_lib/Debug/../src/platform.c"
Locate the file or edit the source lookup path to include its location.

I had no such problems at C - configured

Where did I go wrong?

Best regards,

       Oleg