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.

SYS/BIOS library file

Other Parts Discussed in Thread: SYSBIOS

Hello everyone

Recently, I had migrated my C6455 DSP/BIOS project to C6678 SYS/BIOS project. I am using CCS 5.5. After I added the *.cfg files into new C6678 project, compiled it. It showed the following errors. Some people in the form tell me that I need to reference SYS/BIOS library files. Is that necessary? And where to find those SYS/BIOS library files? I think when I add *.cfg files into my project, it will automatic include those BIOS library files.

Thank You in advance.

Xining

unresolved symbol SEM_create, first referenced in C:\Users\yu5109\workspace_v5_5\...\CCS_PJT\Debug\common.lib<TI_platform.obj> C6678 C/C++ Problem

unresolved symbol LCK_pend, first referenced in C:\Users\yu5109\workspace_v5_5\...\CCS_PJT\Debug\common.lib<TI_platform.obj> C6678 C/C++ Problem

unresolved symbol LCK_post, first referenced in C:\Users\yu5109\workspace_v5_5\...\CCS_PJT\Debug\common.lib<TI_platform.obj> C6678 C/C++ Problem


unresolved symbol LCK_create, first referenced in C:\Users\yu5109\workspace_v5_5\...\Debug\common.lib<TI_platform.obj> C6678 C/C++ Problem


unresolved symbol LCK_delete, first referenced inC:\Users\yu5109\workspace_v5_5\...\CCS_PJT\Debug\common.lib<TI_platform.obj> C6678 C/C++ Problem

  • Xining,

    Can you please post your *.cfg files to this forum thread so we can look at them?  And, the linker library search path used in your new project?  Is that possible?

    Thanks,
    Scott

  • Hi

    My CFG file is listing 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 BIOS = xdc.useModule('ti.sysbios.BIOS');
    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 Hwi = xdc.useModule('ti.sysbios.hal.Hwi');

    /*
    * 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;

    /*
    * Uncomment this line to disable the Error print function.
    * We lose error information when this is disabled since the errors are
    * not printed. Disabling the raiseHook will save some code space if
    * your app is not using System_printf() since the Error_print() function
    * calls System_printf().
    Error.raiseHook = null;
    */

    /*
    * Uncomment this line to keep Error, Assert, and Log strings from being
    * loaded on the target. These strings are placed in the .const section.
    * Setting this parameter to false will save space in the .const section.
    * Error, Assert and Log message will print raw ids and args instead of
    * a formatted message.
    Text.isLoaded = false;
    */

    /*
    * Uncomment this line to disable the output of characters by SysMin
    * when the program exits. SysMin writes characters to a circular buffer.
    * This buffer can be viewed using the SysMin Output view in ROV.
    SysMin.flushAtExit = false;
    */

    /*
    * The BIOS module will create the default heap for the system.
    * Specify the size of this default heap.
    */
    BIOS.heapSize = 0x1000;

    /*
    * Build a custom SYS/BIOS library from sources.
    */
    BIOS.libType = BIOS.LibType_Debug;

    /* System stack size (used by ISRs and Swis) */
    Program.stack = 0x2000;

    /* Circular buffer size for System_printf() */
    SysMin.bufSize = 0x200;

    /*
    * Create and install logger for the whole system
    */
    var loggerBufParams = new LoggerBuf.Params();
    loggerBufParams.numEntries = 16;
    var logger0 = LoggerBuf.create(loggerBufParams);
    Defaults.common$.logger = logger0;
    Main.common$.diags_INFO = Diags.ALWAYS_ON;

    System.SupportProxy = SysMin;

    var hwi0Params = new Hwi.Params();
    hwi0Params.instance.name = "hwi10";
    hwi0Params.eventId = -1;
    Program.global.hwi10 = Hwi.create(10, "&tx_Complete_Event_Handler", hwi0Params);
    var hwi1Params = new Hwi.Params();
    hwi1Params.instance.name = "hwi9";
    Program.global.hwi9 = Hwi.create(9, "&db_Receipt_Event_Handler", hwi1Params);
    var semaphore0Params = new Semaphore.Params();
    semaphore0Params.instance.name = "PPS_ACCESS_SEM";
    Program.global.PPS_ACCESS_SEM = Semaphore.create(null, semaphore0Params);
    var semaphore1Params = new Semaphore.Params();
    semaphore1Params.instance.name = "SRIO_ACCESS_SEM";
    semaphore1Params.mode = Semaphore.Mode_COUNTING;
    Program.global.SRIO_ACCESS_SEM = Semaphore.create(null, semaphore1Params);


    Program.sectMap["systemHeap"] = Program.platform.stackMemory;
    var task0Params = new Task.Params();
    task0Params.instance.name = "TSK_APP_MAIN";
    task0Params.priority = 12;
    Program.global.TSK_APP_MAIN = Task.create("&application_Main_Thread", task0Params);

    My include path is: