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.

not able to find bios package : SYS/BIOS compile error

Other Parts Discussed in Thread: SYSBIOS

Severity and Description Path Resource Location Creation Time Id

xdc.services.global.XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no module named 'SourceDir' in the package xdc.cfg biostry line 182 1312986865390 25483

 

I get an error on this line in the cfg file 

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

 

I verified that the files exist in the folder

BIOS.c ,BIOS.h and some others same name and diff extensions... What am I missing ?

 

Thank you

 

Anish

  • I realise the other error is "no module named srcdir in xdc.cfg"

  • Could you please specify what version of BIOS, XDCTOOLS, and CCS you are using?

    Then perhaps attach your .cfg file here.

    So just to be clear, the error is saying "no module name SourceDir in xdc.cfg"?

    Judah

  • Hi Judah

     

    Yes the problem is its saying no module named sourcedir in xdc.cfg . I also see the 1st error i mention about the bios

    BIOS ver 6.32.3.43

    IPC 1.22   /* though i dont think i need this since im not doing interprocessor communication */

    XDC tools 3.20.8.88

    CCS v4.2

     

    the config file is as follows

     

    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'); /* i get an error here as well, dont know if that is related to the source dir error */

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

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

     

    /* 

     * 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 = 0x2000;

     

    /* System stack size (used by ISRs and Swis) */

    Program.stack = 0x1000;

     

    /* Circular buffer size for System_printf() */

    SysMin.bufSize = 0x400;

     

    /* 

     * Create and install logger for the whole system

     */

    var loggerBufParams = new LoggerBuf.Params();

    loggerBufParams.numEntries = 32;

    var logger0 = LoggerBuf.create(loggerBufParams);

    Defaults.common$.logger = logger0;

    Main.common$.diags_INFO = Diags.ALWAYS_ON;

     

    System.SupportProxy = SysMin;

     

  • Are you buildind through CCS?  If you are and you haven't cleaned the project build, could you do that and re-try again.

    Is this a project that you created/built with previous tools?

    You're issue looks very similar to when you build with older xdctools and then try to rebuild the project with newer xdctools without doing a clean first.

    Judah

  • Yes through CCS, I always clean the project and select the option build after clean...

    I am using the default examples available on the CCS v4 templates.....

    Thank you

    Anish

  • I ran the program using the older SYS/BIOS version 6.2 i think and the error changed to" ti.sysbios.BIOS: no element named heapSize "

  • Anish,
    the example you are trying to build references parameters that were not available in SYSBIOS 6.2, BIOS.heapSize for example. Rather than moving to an older version of SYSBIOS, you should install a newer version of XDCtools that supports SYSBIOS 6.32.3. You can get XDCtools 3.22 from here.

  • Thank you sasha.... though i got new errors... im trying to run on the simulator isnt that possible ? a C64x+ simulator

  • Anish,

    Seems like you are having a lot of compatibility problems mismatching BIOS/XDC versions.  My recommendation would be to pick a BIOS version you want to use..check the release notes on it and it will tell you which XDCTOOLS version you should use with it.

    Judah

  • Sure will try that

    Thank you

    Anish