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.

Error opening TCF file

Other Parts Discussed in Thread: OMAPL138

Hi,

I am using BIOS with C6748 board. I have imported a project which uses BIOS. I tried to import the project into my workspace. However, I found that when I clicked to open the TCF file, I got an error, the screen shot of which is attached. Please let me know what I should do.

 

Thanks,

Debarati.

 

  • The screenshot really isn't legible.  an you just copy ans paste the error text?

    Also, what version of BIOS are you using?

  • Can you attach your TCF script? The error message is saying that the object whose property 'order' is accessed on the line 30 is not defined. Have you created that script from scratch or possibly using cdb2tcf conversion tool?

  • Hi,

    The error which I had is:

    js: "./hwi_audio.tcf", line 30: TypeError: Cannot set property "order" of undefined to "3"

    Correct any script errors in C:/Users/Debarati/Documents/EE445S/DSP Workshop/Sols_rev5_92/Lab4 - HWI/Project/.gconf/hwi_audio/hwi_audio.tcf
    using the Configuration Tool or a text editor, if necessary.

    TConf initialization arguments:
    -e environment['config.importPath']='C:/Users/Debarati/Documents/EE445S/DSP Workshop/Sols_rev5_92/Lab4 - HWI/Project;C:/new_ccs/bios_5_40_02_22/packages' -e environment['config.scriptName']='hwi_audio.tcf'
    The above error was found while trying to open a tcf file which I had already used in a different computer.  The tcf file was created by using the GUI. I did not write any script.
    Also, I tried to create a new TCF file, and allocated some memory for heap. Then I got another error, which said, 
    js: "./trial2.tcf", line 14: Heaps are enabled, but the segment for DSP/BIOS Objects (MEM.BIOSOBJSEG) is not set correctly. Please create a heap in one of your data segments and set MEM.BIOSOBJSEG to it.

    Correct any script errors in C:/Users/Debarati/Documents/workspace/trial2/.gconf/trial2/trial2.tcf
    using the Configuration Tool or a text editor, if necessary.

    TConf initialization arguments:
    -e environment['config.importPath']='C:/Users/Debarati/Documents/workspace/trial2;C:/new_ccs/bios_5_40_02_22/packages' -e environment['config.scriptName']='trial2.tcf'
    I am also having some trouble while updating the code gen tools. I am presently using TI v6.1.9. I tried to download a newer version (7.2.4) and installed it. But, when I  created a new project, this new version of code gen tool did not show up in the drop down menu of selecting the appropriate code gen tools.
    Thanks,
    Debarati.

  • Also, I was initially using BIOS version 5.40, but I upgraded to BIOS v 5.41. Still I am finding this error. 

  • The TCF script is :

    utils.loadPlatform("ti.platforms.evm6748");

     

    /* The following DSP/BIOS Features are enabled.  */

    bios.enableRealTimeAnalysis(prog);

    bios.enableRtdx(prog);

    bios.enableTskManager(prog);

     

    bios.MEM.STACKSIZE = 0x1000;

    bios.MEM.NOMEMORYHEAPS = 0;

    bios.MEM.STACKSIZE = 0x0800;

    bios.MEM.instance("IRAM").createHeap = 1;

    bios.MEM.instance("IRAM").heapSize = 0x00001000;

    bios.MEM.BIOSOBJSEG = prog.get("IRAM");

    bios.MEM.MALLOCSEG = prog.get("IRAM");

    bios.HWI.instance("HWI_INT5").interruptSelectNumber = 61;

    bios.HWI.instance("HWI_INT5").fxn = prog.extern("isrAudio");

    bios.HWI.instance("HWI_INT5").useDispatcher = 1;

    bios.SEM.create("mcaspReady");

    bios.TSK.create("firProcessTsk");

    bios.TSK.instance("firProcessTsk").order = 1;

    bios.TSK.instance("firProcessTsk").fxn = prog.extern("FIR_process");

    bios.STS.create("benchmark");

    bios.STS.instance("benchmark").unitType = "High resolution time based";

    bios.SWI.create("testSwi");

    bios.SWI.instance("testSwi").order = 1;

    bios.SWI.instance("testSwi").fxn = prog.extern("testSwi");

    bios.SWI.instance("testSwi").fxn = prog.extern("testSwiFxn");

    bios.SWI.instance("PRD_swi").order = 1;

    bios.SWI.instance("KNL_swi").order = 2;

    bios.SWI.instance("PWRM_loadSwi").order = 3;

    bios.SWI.instance("testSwi").destroy();

    bios.TSK.instance("TSK_idle").order = 1;

    bios.TSK.instance("firProcessTsk").destroy();

    bios.HWI.instance("HWI_INT5").fxn = prog.extern("HWI_unused", "asm");

    bios.HWI.instance("HWI_INT5").interruptSelectNumber = 5;

    bios.IDL.create("IDL_ledToggle");

    bios.IDL.instance("IDL_ledToggle").order = 1;

    bios.IDL.instance("IDL_ledToggle").fxn = prog.extern("ledToggle");

    bios.HWI.instance("HWI_INT5").fxn = prog.extern("isrAudio");

    bios.HWI.instance("HWI_INT5").interruptSelectNumber = 61;

    bios.LOG.create("trace");

    bios.IDL.instance("LNK_dataPump").order = 1;

    bios.IDL.instance("RTA_dispatcher").order = 2;

    bios.IDL.instance("IDL_cpuLoad").order = 3;

    bios.IDL.instance("PWRM_idleCPU").order = 4;

    bios.IDL.instance("IDL_ledToggle").destroy();

    bios.IDL.create("IDL_ledToggle");

    bios.IDL.instance("IDL_ledToggle").order = 5;

    bios.IDL.instance("IDL_ledToggle").fxn = prog.extern("ledToggle");

    bios.IDL.instance("IDL_ledToggle").calibration = 0;

    bios.IDL.instance("IDL_ledToggle").destroy();

    bios.IDL.create("IDL_ledToggle");

    bios.IDL.instance("IDL_ledToggle").order = 5;

    bios.IDL.instance("IDL_ledToggle").fxn = prog.extern("ledToggle");

    bios.IDL.instance("IDL_ledToggle").calibration = 0;

    bios.IDL.instance("IDL_ledToggle").destroy();

    bios.IDL.create("IDL_ledToggle");

    bios.IDL.instance("IDL_ledToggle").order = 5;

    bios.IDL.instance("IDL_ledToggle").fxn = prog.extern("ledToggle");

    bios.SWI.create("SWI_firProcess");

    bios.SWI.instance("SWI_firProcess").order = 4;

    bios.SWI.instance("SWI_firProcess").fxn = prog.extern("FIR_process");

    bios.IDL.instance("IDL_ledToggle").destroy();

    bios.IDL.create("IDL_ledToggle");

    bios.IDL.instance("IDL_ledToggle").order = 5;

    bios.IDL.instance("IDL_ledToggle").fxn = prog.extern("ledToggle");

    bios.IDL.instance("IDL_ledToggle").calibration = 0;

    bios.IDL.instance("IDL_ledToggle").destroy();

    // !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!

     

    prog.gen();

  • Which BIOS 5.41 have you tried? I imported your script without any changes in BIOS 5.41.09.34 and it built without any errors. The error message seems to be caused by the line that sets the property 'order' of PWRM_loadSwi, and there could have been a bug that was fixed between the 5.41 release that you are using and 5.41.09.34.

    Also, the property 'order' for various objects can be used to order function calls for multiple functions waiting for the same event. Unless you specifically wanted these properties to be set up as they are, you can safely remove them. Just open your TCF script in a text editor and remove all lines that reference 'order'. Then, open that new file in GUI and see if you can build.

  • Hi,

    Thanks for your help. I uninstalled the older version of CCSv4 and reinstalled a newer version with BIOS version 5.41.10.36. I could open and save the TCF files after that. However, I am having a different error while I hit "Build". It says :

    [ ***** USER ERROR ***** - ] Project build options do not match Global configuration settings. Compiler options do not specify -mv64+, but configuration is for C64x+ bios_led line 0 1311192242391 41

    HWI_INTRMULTHIGH GBL_L2MARMASK HWI_INTRMULTLOW bios_led line 0 1311192242392 42

    I am using CCSv4 with C6748 processor(OMAPL138 EVM board). Can you throw some light on how to rectify these errors?

    Regards,

    Debarati.

  • When you selected evm6748 platform, you also selected the C6748 device, which is a C64+ device. But, in your project properties, you probably did not select C64+ device, so the compile options are mismatched with your TCF configuration. Right-click on the project, and go to Build Properties->CCS Build->General, and select Generic C64x+ Device for Device Variant.

  • Hi,

    By trial and error I found another remedy to this problem! I went to Build Properties->C/C++ Build->Basic Options. Then, in Target Processor Version, I changed the defalut "67p" to "6740". I could run the program after that! Thanks for your suggestion too. I will also try that out.

    Regards,

    Debarati.

  • Hi,

    I am having some trouble with BIOS projects again. I am running a working code on OMAPL138 (C6748) and CCS Version 4 Platinum. I installed CCS 4 in a different computer. When I tried to run the code, I got some compilation errors:

    Severity and Description    Path    Resource    Location    Creation Time    Id
    errors encountered during linking; "hwi_audio1.out" not built        hwi_audio1    line 0    1311973533709    22
    Linking failed. Check the Console window for details.        hwi_audio1    Unknown    1311973533709    23
    unresolved symbol _EVMC6748_lpscTransition, first referenced in ./mcasp_TTO.obj        hwi_audio1    line 0    1311973533709    17
    unresolved symbol _EVMC6748_pinmuxConfig, first referenced in ./mcasp_TTO.obj        hwi_audio1    line 0    1311973533709    18
    unresolved symbol _I2C_init, first referenced in ./main.obj        hwi_audio1    line 0    1311973533709    19
    unresolved symbol _I2C_read, first referenced in ./aic3106_TTO.obj        hwi_audio1    line 0    1311973533709    20
    unresolved symbol _I2C_write, first referenced in ./aic3106_TTO.obj        hwi_audio1    line 0    1311973533709    21

    I am using BIOS version 5.40.02.22 and CodeGen Tools 6.1.9.

    Thanks in advance!

    Regards,

    Debarati.