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.

C6Flo Example problem



Hello,

Iḿ starting to use the C6Flo plugin for the CCSv5 and I've encountered a problem in the example. I started a new project and selected the C6Flo Example: c6747_audio_passthrough. 

The diagram loads fine and seems very straightforward, but when I click the generate code button, it loads for a while and then says:

"Code generation failed!. Unable to find log file"

I don't know what this error is about and can't find any reference to it on the forums or in the internet, can you please help me?

Regards,

Aquiles Lacruz

  • Aquiles,

    This error message is generated when the code generation back end is unable to create a text file in its working folder (typically in a location like C:/ti/ccsv5/ccs_base/c6flo_X, where X is the version number of the C6Flo plugin).  There are a couple of things to try if you're running into this problem:

    1. If you installed CCS in your "Program Files" path, try moving it to a location like C:/ti (see above).  Newer versions of Windows tend to be more protective of the Program Files folder, and I've seen this cause problems before when CCS 5.1 is installed there.
    2. Try running CCS using the "run as administrator" option.
    3. Try creating a blank file named "c6_app_writer_log.txt" in the C6Flo working folder (see above).

    Hopefully one of these options will help you work around the issue.  Please give it a try and let me know if you're still having trouble.

  • Thanks Joe,

    It was a permission problem on the folder that the CCSv5 was installed I just gave full permisology to the directory and now it tries to generate the code. I'm getting another set of errors but hopefully this ones I can manage to solve.

    Regards,

    Aquiles Lacruz

  • Hello,

    This is a follow up problem, now that I'm past the log problem, I've encountered a problem that I can identify but don't know where to solve it. This is the error message:

    [App Writer] (12:20:48.958): Generating CFG file...
    [App Writer] (12:20:48.974): Running xdc.tools.configuro...
    [App Writer] (12:20:48.981): /opt/ti/xdctools_3_23_03_53/xs --xdcpath "/opt/ti/ccsv5/ccs_base/c6flo_1.0.0.201205011655/Blocks/" xdc.tools.configuro -t ti.targets.C64P -c "/opt/ti/ccsv5/tools/compiler/c6000/" -x ".*" --generationOnly "./AppWriterTemp/audio_app.cfg"
    [XDC Build] (12:20:51.111): making package.mak (because of package.bld) ...
    [XDC Error] (12:20:53.418): js: "./package.bld", line 60: Error: template generation of 'compiler.opt' failed: Error: /opt/ti/ccsv5/tools/compiler/c6000/ cannot be found. Ensure that rootDir for the C64P target is set correctly in ./config.bld

    As you can see the problem is that the compiler directory does not exist, and that's true, the true name of the directory is: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/

    The thing is that I can find where to change this for the c6flo to use, as all my variables in the CCSv5 point to the correct location, and checking some of the config.bld files in the c6flo directory within the eclipse folder don give me any answers as every file I've checked contains only the following lines:

    /* This file exists to eliminate the warning that's generated when XDCtools
    * can't find a user supplied config.bld file
    */
    Build.useTargets = null; /* don't use any targets */

    So, does anyone know where do I have to modify this rootDir, or just set the correct address for the compiler?

    Regards,

    Aquiles Lacruz

     

  • Acquiles,

    Thanks for bringing this to our attention.  Unfortunately, I don't think you can reconfigure the C6Flo plug-in to use the correct compiler path.  As a workaround, I recommend creating a copy of the tools/compiler/c6000_7.3.4 folder with the name the C6Flo plug-in is trying to use (i.e. tools/compiler/c6000).  Don't just rename the existing folder, since that could break other components within CCS.  I realize this is not an elegant solution, but hopefully it will be good enough to keep you going.

  • Hi

    Went thru the pain of not able to generate the code for C6flo. After copying all the content of c6000_7.3.4 into a newly created folder C6000, it works.

    I have a question, as I only have the LCDK6748 board with me, when i run the sample project for meant for C6748EVM in C6flo, it did not work when downloaded onto my LCDKC6748 board. I wonder if this could be the reason why the C6flo generated codes did not run on my LCDK6748 as the Audio in and output component in C6flo is made for C6748EVM?

    Cross verify in starterware, which have the same project for both LCDK6748 and 6748EVM. After making some comparison, noticed there are some difference in coding between the same project in Starterware.


    Ivan