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.

Can I use BIOS6 IomAdapter for legacy bios5 driver

Other Parts Discussed in Thread: SYSBIOS

 

I try to use the sysbios 6 in our C6748 project and find that the PSP 01_30_01 can only support dspbios 5. After digging through the SYS/BIOS Inter-Processor
Communication (IPC) and I/O User’s Guide, I find out that the IomAdapter can provide a hook for the legacy iom driver to IDriver in sysbios6. This seems to be a rescue for the sysbios 6 user.

I create a simple hello sample project and add the IomAdapter in the RTSC configuration in xgconf and I get the following errors

Severity and Description Path Resource Location Creation Time Id
This module should be used BEFORE ti.sysbios.BIOS bios6simple hello.cfg ti.bios.CLK 1296074403509 868
This module should be used BEFORE ti.sysbios.BIOS bios6simple hello.cfg ti.bios.GBL 1296074403556 870
This module should be used BEFORE ti.sysbios.BIOS bios6simple hello.cfg ti.bios.SWI 1296074403525 869
This module should be used BEFORE ti.sysbios.BIOS bios6simple hello.cfg ti.bios.TSK 1296074403462 867
This module should be used BEFORE ti.sysbios.heaps.HeapMem bios6simple hello.cfg ti.bios.MEM 1296074403431 866
This module should be used BEFORE xdc.runtime.LoggerBuf bios6simple hello.cfg ti.bios.LOG 1296074403415 865

I add this line "xdc.loadPackage('ti.bios.tconf');" at the beginning of the RTSC configuration script. I get the following warnings

Severity and Description Path Resource Location Creation Time Id
Cannot change ti.sysbios.knl.Task defaultStackSize. Parameter frozen or changed elsewhere bios6simple hello.cfg ti.bios.TSK 1296075995723 885
Cannot change ti.sysbios.knl.Task idleTaskStackSize. Parameter frozen or changed elsewhere bios6simple hello.cfg ti.bios.TSK 1296075995754 886

I cannot find any documentation to describe these warnings.

Do you know if the IomAdapter can works with the legacy bios5 PSP driver such as SPI and UART. I attached the RTSC configuration script.

Thanks,

Jonathan

/*

* ======== hello.cfg ========

*

*/

xdc.loadPackage('ti.bios.tconf');

/* Include function that helps minimize code and data footprint */

xdc.includeFile("sizing.cfg.xs");

/*

* Use BASIC or MINIMAL footprint settings. Uncomment following

* lines to reduce code and data footprint if needed. See sizing.cfg.xs for more

* details

*/

//sizingConfig("BASIC");

//sizingConfig("MINIMAL");

 

var Memory = xdc.useModule('xdc.runtime.Memory');

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

var SysStd = xdc.useModule('xdc.runtime.SysStd');

var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');

var Main = xdc.useModule('xdc.runtime.Main');

var Defaults = xdc.useModule('xdc.runtime.Defaults');

var Diags = xdc.useModule('xdc.runtime.Diags');

 

var BIOS = xdc.useModule('ti.sysbios.BIOS');

var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');

var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');

 

/* Create default heap and hook it into Memory */

var heapMemParams = new HeapMem.Params;

var targName = Program.build.target.$name;

if (targName.indexOf("C28") != -1) {

/*

* 28x targets have limited memory and require Task stacks to be placed

* in memory entirely below the address 0x10000.

* Setting 'sectionName' to '.taskStackSection' accomplishes this.

*/

heapMemParams.size = 0x800;

var heap0 = HeapMem.create(heapMemParams);

heap0.sectionName = ".taskStackSection";

}

else if (targName.indexOf("MSP430") != -1) {

var heapMemParams = new HeapMem.Params;

heapMemParams.size = 0x800;

var heap0 = HeapMem.create(heapMemParams);

}

else {

var heapMemParams = new HeapMem.Params;

heapMemParams.size = 8192;

var heap0 = HeapMem.create(heapMemParams);

}

 

Memory.defaultHeapInstance = heap0;

 

/*

* Create and install logger for the whole system

*/

var loggerBufParams = new LoggerBuf.Params();

loggerBufParams.numEntries = 32;

logger0 = LoggerBuf.create(loggerBufParams);

Defaults.common$.logger = logger0;

Main.common$.diags_INFO = Diags.ALWAYS_ON;

 

/* Configure SysStd to send System_printfs to standard out */

System.SupportProxy = SysStd;

 

var ti_sdo_io_DriverTable = xdc.useModule('ti.sdo.io.DriverTable');

var ti_sdo_io_Stream = xdc.useModule('ti.sdo.io.Stream');

var ti_sdo_io_drivers_IomAdapter = xdc.useModule('ti.sdo.io.drivers.IomAdapter');