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.

An error about the example code in SYS/BIOS user's guide

Other Parts Discussed in Thread: SYSBIOS

I'm a beginner of SYS/BIOS 6.x. I typed all the example code of 3.7 Example Using Hwi, Swi and Task Threads on page 3-68 to page 3-72 in "TI SYS/BIOS Real-time Operating System v6.x User's Guide" (Literature Number : SPRUEX3J) and run them on CCSv4 with SYS/BIOS 6_33_00_19, IPC 1_23_05_40 and XDCTools 3_23_00_32. But the following errors occur :

D:\program files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: configPkg/linker.cmd'
'Invoking: XDCtools'
"D:/program files/Texas Instruments/xdctools_3_16_02_32/xs" --xdcpath="D:/program files/Texas Instruments/bios_6_33_00_19/packages;D:/program files/Texas Instruments/ipc_1_23_05_40/packages;D:/program files/Texas Instruments/xdais_6_25_01_08/packages;D:/program files/Texas Instruments/xdais_6_25_01_08/examples;" xdc.tools.configuro -o configPkg -t ti.targets.C674 -p ti.platforms.evm6747 -r debug -c "D:/program files/Texas Instruments/ccsv4/tools/compiler/c6000" "../common.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring common.x674 from package/cfg/common_x674.cfg ...
js: "D:/program files/Texas Instruments/bios_6_33_00_19/packages/ti/sysbios/family/Settings.xs", line 106: XDC runtime error: xdc.rov.ViewInfo.Params#4/viewMap/'Exception': incompatible assignment to type :null
    "E:/CCS4Workspace/workspace/BIOSIdleTest_configuration/common.cfg", line 8
    "./package/cfg/common_x674.cfg", line 781
    "./package/cfg/common_x674.cfg", line 736
gmake.exe: *** [package/cfg/common_x674.c] Error 1
js: "D:/program files/Texas Instruments/xdctools_3_16_02_32/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
D:\program files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [configPkg/linker.cmd] Error 1
D:\program files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project BIOSIdleTest_configuration

(Idle.c is the example C code, common.cfg is the example xs code).

I'll list the common.cfg below:

// Configure System to use SysMin
System = xdc.useModule('xdc.runtime.System');
System.SupportProxy = xdc.useModule('xdc.runtime.SysMin');

// Use HeapMem for default heap manager and give it 8192 bytes to work with
var Memory = xdc.useModule('xdc.runtime.Memory');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');

var heapParams = new HeapMem.Params;
heapParams.size = 8192;

// Pull in Timer, Semaphore, Swi, Task, and List modules used in the example
xdc.useModule('ti.sysbios.hal.Timer');
xdc.useModule('ti.sysbios.knl.Semaphore');
xdc.useModule('ti.sysbios.knl.Swi');
xdc.useModule('ti.sysbios.knl.Task');
xdc.useModule('ti.sdo.utils.List'); // List module in IPC

According to my test, all the statement including "xdc.useModule('ti.sysbios.*)" will result an error.

I don't know why, but it works fine with DSP/BIOS 6.2.

Thanks for help!