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.

GConf, DSP/Bios, loadPlatform.

Other Parts Discussed in Thread: CCSTUDIO

Hi,

when I open my CCS-project i get the following error,

js: "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 591: exception from uncaught JavaScript throw: Error: Can't find cpu definiton file: ti/catalog/c6000/C6748.tci
"C:/CCStudio_v3.3/bios_5_41_10_36/pckages/ti/platforms/generic/Platform.tcp", line 63
....

and then CCS says "Cant open the GConf file, correct any errors in the script and reopen", something like that.
Actually the "long" error message doesn't come any more, now i only get this "js: "./puma_com_test.tcf", line 83: Failed to generate config files." which doesn't give me any useful info.... something is wrong, plaese fix?
line 83 in the .tcf file is the last line "prog.gen();".

I'am using CCS3.3, version 3.3.82.13
In Setup CCS i have setup "Blackhawk USB560m - C6747, 20-pin JTAG EMulator"
I'am using the DSP/Bios 5_41_10_36 which is checked in the Component Manager, but i have DSP/Bios 5_31_02 installed also, not checked in the Comp Man...

For me it looks like the project somehow wants to look in the "old" DSP/Bios 5_31_02 also but there it can't find the DSP 6748, that is one of the reasons I installed DSP/Bios 5_41_10_36.

I think I have found the file (see below) which tells where the GConf should look

# GENERATED FILE -- DO NOT EDIT!
# This file contains tconf options for file "puma_com_test.tcf",
# for use by the Gconf graphical configuration tool.
# The options are exported from the following CCS project:
# C:\CCS_PUMA\dev_martin\puma_com_test.pjt, "custom" configuration.
-Dconfig.importPath="C:\CCStudio_v3.3/bios_5_41_10_36/packages;"

This file says look in 5_41_10_36, not 5_31_02!
So is there any moore files where there can be a reference to the "old" DSP/Bios?

Best regards, Martin.

 

  • I suspect that your .pjt has reference to that older BIOS.   See the attached .zip file.   You should update the dialog box to point to 5.41.10.36.  Or use the BIOS_INSTALL_DIR variable to keep this a soft binding.

    -Karl-

    3823.biospjt.zip

  • Hi Karl,

    no the .pjt doesn't include any reference to the old DSP/Bios 5.31.02.
    The Build Options are set like you show in the "new_project_path.jpg", but pointing to 5.41.10.36 ofcourse.

    The .tco file also points to 5.41.10.36 like I wrote before, I think this is the file that tells tconf where to look...?

    But as I wrote before it sems like the project looks in both 5.31.02 and 5.41.10.36, see the first error message i wrote:
    js: "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 591: exception from uncaught JavaScript throw: Error: Can't find cpu definiton file: ti/catalog/c6000/C6748.tci
    "C:/CCStudio_v3.3/bios_5_41_10_36/pckages/ti/platforms/generic/Platform.tcp", line 63
    ....

    How is this possible?
    Is there any more file that can point to the 5.31.02 and this one doesn't get updated?

    Okay you made me look in the Environment Variables and there was the BIOS_INSTALL_DIR pointing to 5.31.02, but now I changed it to 5.41.10.36.
    But I dont realy use it and it still doesn't work.

    /Martin

  • Hi,

    this is the complete error meassage that I talked about above (I had just a printout before and I didn't get that same error-message again...)

    But now I get it if I try to assign a new DSP/Bios configuration.
    It looks like booth 5.41.10.36 and 5.31.02 is referenced.
    Can they be that, is that normal?

    js: "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 591: exception from uncaught JavaScript throw: Error: Can't find cpu definition file: ti/catalog/c6000/C6748.tci

        "C:/CCStudio_v3.3/bios_5_41_10_36/packages/ti/platforms/generic/Platform.tcp", line 63
        "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 562
        "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 791
        "C:/CCStudio_v3.3/bios_5_41_10_36/packages/ti/platforms/evm6748/Platform.tci", line 66
        "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 562
        "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 791
        "./6F7A.tcf", line 1
        "./<stdin>", line 4
    js: "C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci", line 834: exception from uncaught JavaScript throw: TypeError: Cannot call method "create" of undefined (C:/CCStudio_v3.3/bios_5_31_02/xdctools/include/utils.tci#834)

        "C:/CCStudio_v3.3/bios_5_41_10_36/packages/ti/platforms/evm6748/Platform.tc

    Correct any script errors in C:/DOCUME~1/1780MA~1/LOCALS~1/Temp/6F7A.tcf
    using the Configuration Tool or a text editor, if necessary.

    TConf initialization arguments:
    -e environment['config.importPath']='C:/CCStudio_v3.3/bios_5_41_10_36/packages;C:/CCStudio_v3.3/bios_5_31_02/packages;' -e environment['config.scriptName']='6F7A.tcf'

    The location of this new .tcf is the correct one, but this is because Iam trying to asign a new one, I think...

    /Martin

  • Martin Ostrom said:

    TConf initialization arguments:
    -e environment['config.importPath']='C:/CCStudio_v3.3/bios_5_41_10_36/packages;C:/CCStudio_v3.3/bios_5_31_02/packages;' -e environment['config.scriptName']='6F7A.tcf'

    This looks strange.  You somehow have 5.31.02 on your importPath. 

     

    [1]  Can you check your environment variables for reference to 5.31.02 (or 5_31_02)?

    [2]  Can you check your 'BIOS_INSTALL_DIR' environment variable?  It should point to 5.41.10.36.

    [3] Can you check your component manager to make sure you have 5.41.10.36 selected for all ISAs?

     

    [4]  Can you send complete build output?  I need to see the tconf line in your build.

     

    [hello.tcf] "C:\CCStudio_v3.3PLA\bios_5_41_10_36\xdctools\tconf" -b -Dconfig.importPath=".;../;C:/CCStudio_v3.3PLA/bios_5_41_10_36/packages/ti/bios/examples/common;C:/CCStudio_v3.3PLA/bios_5_41_10_36/packages" hello.tcf

  • Hi,
    the paste function didn't work, either ctrl-v or the "paste from Word" button, so I made images instead.

    [1]
    I couldn't find any reference to 5.31.02 in any env-variable.

    [2]
    My 'BIOS_INSTALL_DIR' environment variable looks like this,

    but acctualy it was pointing to 5.31.02 when I started to get this error (many days ago), then I changed it direct, without any succes.

    [3]
    My Component Manager looks like this, only the C67XX refers to 5.41.10.36, all others to 5.31.02, but it has been like this for as long as I have runed CCS and it has worked OK. But I will change this and try again...

    [4]
    Here is the biuld output. I can see it differs from your hello.tcf example, but nowhere it refers to 5.31.02, or?

    -------------------------  puma_com_test.pjt - custom  -------------------------
    [puma_com_test.tcf] "C:\CCStudio_v3.3\bios_5_41_10_36\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_41_10_36/packages;" puma_com_test.tcf
    js: "./puma_com_test.tcf", line 98: Failed to generate config files.

    Build Complete,
      1 Errors, 0 Warnings, 0 Remarks.

    /Martin

  • Can you try changing the 64XX in the component manager to point to 5.41.10.36?   I wonder if CCS is treating the 674x as a 64XX instead of a 67XX.    Strange as it might seem, the 674x is closer to a 64xx, than it is to a 670x/671x/672x.

    Have you considered updating to CCSv5.1?  

    Regards,
    -Karl-

  • I tried to change this, but get the same error...

    Should I reinstall 5.41.10.36?
    Should I remove 5.31.02?
    I'am a little bit afraid to do this kind of operations, that everything will stop working.
    I have a project that still works to build, that makes this error even more strange.... 

    We have bought CCSv4, but not so many licenses...
    Anyway this should work!

    Regards
    /Martin

  • Martin,
    in the case where your command line was
    -------------------------  puma_com_test.pjt - custom  -------------------------
    [puma_com_test.tcf] "C:\CCStudio_v3.3\bios_5_41_10_36\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_41_10_36/packages;" puma_com_test.tcf
    js: "./puma_com_test.tcf", line 98: Failed to generate config files.

    did you still get the error message that references bios 5.31.02 files? I see that the config files are not generated, but I can't see what was the error in that case. Anyway, this command line looks correct and now the only way 5.31.02 should find its way into the configuration is through an environment variable.

    Can you also try one more thing that would help with the debugging? Right before trying to build, just rename bios_5_31_02 installation, by adding for example "hide." at the beginning of the name, so you have "hide.bios_5_31_02" directory. Please post the content of the error message then, if you get any.

    Thanks,
    Sasha

  • Hi Sasha,

    good ideas!

    No, actually I don't get this error that refers to 5.31.02 anymore, but I still get this error (below) that you also refer to above

    -------------------------  puma_com_test.pjt - custom  -------------------------
    [puma_com_test.tcf] "C:\CCStudio_v3.3\bios_5_41_10_36\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_41_10_36/packages;" puma_com_test.tcf
    js: "./puma_com_test.tcf", line 98: Failed to generate config files.

    This doesn't say anything to me what the problem is about.
    I have tried to run the Graphical Debugger, but this doesn't point to any error, or I don't understand how to run it, I dont find so much documentation about it.

    Just some history....
    As I wrote above I found some weeks ago now that one environment variable, was wrongly set to point to 5.31.02, but I changed that and still got that error.
    I also got that error when I tried to make a totaly new project and assigned a "New DSP/BIOS Configuration", chosing
    C:\CCStudio_v3.3\bios_5_41_10_36\packages\ti\platforms\evm6748\Platform.tci
    Then I also got this error refering to 5.31.02....
    But I tried this today and now it works okay :-)

    Now I also did as you suggested and renamed the 5.31.02 installation.
    Got the same error as above, no reference to any missing DSP/BIOS installation... which I think was your intention if it still refered to 5.31.02

    So, okay maybe that "refering to 5.31.02 error" is history now, that error is gone...

    But how do I debug the error that I get now?
    Something is wrong with the .tcf file, but what

    line 98: Failed to generate config files.

    it says nothing!
    line 98 in the .tcf file is   
    prog.gen();

    here is the puma_boot_test.tcf file

    /***********************************************************************************
    File  : $Id: //elec/dsp/puma_boot/dev_martin/dsp-bios/puma_boot_test.tcf#2 $
    Author  : $Author: 1780marost $
    Date  : $DateTime: 2011/08/19 15:51:11 $
    ***********************************************************************************/

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

    /* The following DSP/BIOS Features are enabled.  */
    bios.enableRealTimeAnalysis(prog);
    bios.enableRtdx(prog);
    bios.enableTskManager(prog);

    bios.MEM.instance("DDR").len = 0x10000000;
    bios.MEM.instance("DDR").comment = "256Mbytes of the DSP's off-chip memory";
    bios.LOG.create("trace");
    bios.LOG.instance("trace").bufLen = 128;
    bios.LOG.TS = 1;
    bios.LOG.instance("trace").bufSeg = prog.get("DDR");
    bios.LOG.instance("LOG_system").bufSeg = prog.get("DDR");
    bios.LOG.OBJMEMSEG = prog.get("DDR");
    bios.CLK.instance("PRD_clock").order = 1;
    bios.GBL.CALLUSERINITFXN = 1;
    bios.GBL.SPECIFYRTSLIB = 0;
    bios.CLK.CONFIGURETIMER = 1;
    bios.ECM.ENABLE = 1;
    bios.CLK.CONFIGURETIMER = 0;
    bios.CLK.INPUTCLK = 20.0000;
    bios.HWI.ENABLEEXC = 0;
    bios.CLK.ENABLEHTIME = 0;
    bios.CLK.HIRESTIME = 0;
    bios.CLK.RESETTIMER = 1;
    bios.CLK.CONFIGURETIMER = 1;
    bios.TSK.instance("TSK_idle").order = 1;
    bios.MEM.NOMEMORYHEAPS = 1;
    bios.MEM.USERCOMMANDFILE = 0;
    bios.MEM.ARGSSEG = prog.get("DDR");
    bios.MEM.STACKSEG = prog.get("DDR");
    bios.MEM.GBLINITSEG = prog.get("DDR");
    bios.MEM.TRCDATASEG = prog.get("DDR");
    bios.MEM.SYSDATASEG = prog.get("DDR");
    bios.MEM.OBJSEG = prog.get("DDR");
    bios.MEM.BIOSSEG = prog.get("DDR");
    bios.MEM.SYSINITSEG = prog.get("DDR");
    bios.MEM.HWISEG = prog.get("DDR");
    bios.MEM.HWIVECSEG = prog.get("DDR");
    bios.MEM.RTDXTEXTSEG = prog.get("DDR");
    bios.MEM.TEXTSEG = prog.get("DDR");
    bios.MEM.SWITCHSEG = prog.get("DDR");
    bios.MEM.BSSSEG = prog.get("DDR");
    bios.MEM.FARSEG = prog.get("DDR");
    bios.MEM.CINITSEG = prog.get("DDR");
    bios.MEM.PINITSEG = prog.get("DDR");
    bios.MEM.CONSTSEG = prog.get("DDR");
    bios.MEM.DATASEG = prog.get("DDR");
    bios.MEM.CIOSEG = prog.get("DDR");
    bios.MEM.ENABLELOADADDR = 1;
    bios.MEM.LOADBIOSSEG = prog.get("DDR");
    bios.MEM.LOADSYSINITSEG = prog.get("DDR");
    bios.MEM.LOADGBLINITSEG = prog.get("DDR");
    bios.MEM.LOADTRCDATASEG = prog.get("DDR");
    bios.MEM.LOADTEXTSEG = prog.get("DDR");
    bios.MEM.LOADSWITCHSEG = prog.get("DDR");
    bios.MEM.LOADCINITSEG = prog.get("DDR");
    bios.MEM.LOADPINITSEG = prog.get("DDR");
    bios.MEM.LOADCONSTSEG = prog.get("DDR");
    bios.MEM.LOADHWISEG = prog.get("DDR");
    bios.MEM.LOADHWIVECSEG = prog.get("DDR");
    bios.MEM.LOADRTDXTEXTSEG = prog.get("DDR");
    bios.STS.OBJMEMSEG = prog.get("DDR");
    bios.SYS.TRACESEG = prog.get("DDR");
    bios.BUF.OBJMEMSEG = prog.get("DDR");
    bios.SEM.OBJMEMSEG = prog.get("DDR");
    bios.MBX.OBJMEMSEG = prog.get("DDR");
    bios.QUE.OBJMEMSEG = prog.get("DDR");
    bios.LCK.OBJMEMSEG = prog.get("DDR");
    bios.GBL.ENABLEINST = 0;
    bios.GBL.INSTRUMENTED = 0;
    bios.GBL.ENABLEALLTRC = 0;
    bios.CLK.OBJMEMSEG = prog.get("DDR");
    bios.GBL.ENABLEINST = 1;
    bios.GBL.INSTRUMENTED = 1;
    bios.GBL.ENABLEALLTRC = 1;
    bios.GBL.ENABLEINST = 0;
    bios.GBL.INSTRUMENTED = 0;
    bios.GBL.ENABLEALLTRC = 0;
    bios.GBL.CALLUSERINITFXN = 0;
    bios.SYS.TRACESEG = prog.get("IRAM");
    bios.GBL.ENABLEINST = 1;
    bios.GBL.CALLUSERINITFXN = 1;
    bios.GBL.CALLUSERINITFXN = 0;
    bios.GBL.ENABLEINST = 0;
    bios.GBL.INSTRUMENTED = 0;
    bios.GBL.ENABLEALLTRC = 0;
    // !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!

    if (config.hasReportedError == false) {
       prog.gen();
    }

    //prog.gen();

    Regards
    /Martin

  • Martin,
    the error message you are seeing now indicates that the problem is not in your configuration file, and that there is still something wrong with your BIOS 5.41 and CCS 3 installation. You can try building on the command line. Open the command window and go to the directory that contains puma_com_test.tcf, and run

    "C:\CCStudio_v3.3\bios_5_41_10_36\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_41_10_36/packages;" puma_com_test.tcf

    I expect the same error output, but since it's not that hard to try it, you should do it in case there is more output there.

    I also copied your configuration and built it on my PC without problems. However, I don't have CCS 3 installed, so I did that in CCS 5. You mention that you have some projects that are working. Are those BIOS 5.41 projects? If yes, can you save relevant sources and delete puma_com_test project from CCS and from the disc, and create it again?

    If you are seeing the same problem with other BIOS 5.41 projects, it seems to me you should try uninstalling 5.31, and possibly 5.41 too, and then install 5.41 only.