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.

CCS/AM3354: CCS

Part Number: AM3354
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

I work with CCS 8.3.0,  RTOS 2.00.01.23 and XDCTools 3.32.00.6

I try to config my app_d.cfg by XGConf and all the time I have this:

Sorry, I'm having problems creating this editor. An unexpected exception was thrown.

Index: 0, Size: 0

What is the problem?

  • Sergei Petrov said:
    I work with CCS 8.3.0,  RTOS 2.00.01.23 and XDCTools 3.32.00.6

    I haven't been able to repeat the failure using those tool versions, using CCS running under Ubuntu.

    Sergei Petrov said:
    I try to config my app_d.cfg by XGConf and all the time I have this:

    Sorry, I'm having problems creating this editor. An unexpected exception was thrown.

    Index: 0, Size: 0

    Are there any other errors reported below that?

    I have seen a "Sorry, I'm having problems creating this editor. An unexpected exception was thrown" error in the past when trying to open a .cfg file in XGConf but the error was followed by "org.eclipse.rtsc.xdctools.INVALID_CODEGEN_LOCATION: Invalid codegen location" when clicked on details. E.g. the thread "org.eclipse.rtsc.xdctools.INVALID_CODEGEN_LOCATION: Invalid codegen location" on open of SYS/BIOS .cfg file in CCS 6.2.0.00050. On the problem in the referenced thread building the project and the closing and re-opening the .cfg file made the error go away.

  • I work under Windows 10
    I have no more details about this error, only this information. Not even eclipse errors.
  • Hi Sergei,
    Can you attach the .cfg file?

    Thanks
    ki
  • For more information, I use Windows 10 64 bit, 1803, CCS 8.3.0.00009.

    My *.cfg fileapp_r.cfg

  • If you need any logs, I can send it.
  • Thanks. Your cfg file looks ok. Can you try a quick test - create a brand new empty project. Add just the cfg file to it. See if you can then open the cfg file in the gconf editor.

    Thanks
    ki
  • Yes. In this project:  47146.test.zip

    It can be opened by XGConf, in this case I have

    and 

    It was compiled once, now it doesn't compile. I've not resolved yet.

  • Sergei Petrov said:
    It was compiled once, now it doesn't compile. I've not resolved yet.

    When I tried to compile that example the full output from the CCS build console was:

    **** Build of configuration Debug for project test ****
    
    /home/mr_halfword/ti/ccs901/ccs/utils/bin/gmake -k -j 12 all -O 
     
    Building file: "../app.cfg"
    Invoking: XDCtools
    "/home/mr_halfword/ti/xdctools_3_25_04_88/xs" --xdcpath="/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/bios_6_40_01_15/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/ndk_2_23_01_01/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_00_28/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p xdc.platform.generic -r release -c "/home/mr_halfword/ti/ccs901/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa8fg from package/cfg/app_pa8fg.cfg ...
    subdir_rules.mk:10: recipe for target 'build-2025655903-inproc' failed
    error: xdc.platform.generic.Platform: "/home/mr_halfword/ti/xdctools_3_25_04_88/packages/xdc/platform/generic/Platform.xs", line 112: xdc.platform.generic.Platform.Instance#0 : Parameter 'deviceName' must be specified for 'xdc.platform.generic' platform.
    error: xdc.platform.generic.Platform: "/home/mr_halfword/ti/xdctools_3_25_04_88/packages/xdc/platform/generic/Platform.xs", line 117: xdc.platform.generic.Platform.Instance#0 : Parameter 'catalogName' must be specified for 'xdc.platform.generic' platform.
    js: "$internal", line 25: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'undefined' along the path: '/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/bios_6_40_01_15/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/ndk_2_23_01_01/packages;/home/mr_halfword/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_00_28/packages;/home/mr_halfword/ti/xdctools_3_25_04_88/packages;..;'. Ensure that the package path is set correctly.
        "./package/cfg/app_pa8fg.cfg", line 148
    gmake: *** [package/cfg/app_pa8fg.xdl] Error 1
    js: "/home/mr_halfword/ti/xdctools_3_25_04_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-2025655903-inproc] Error 1
    gmake: *** No rule to make target 'build-2025655903', needed by 'configPkg/compiler.opt'.
    gmake: *** No rule to make target 'build-2025655903', needed by 'configPkg/linker.cmd'.
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****

    The reasons for the build errors are:

    1. The Platform has been set to "xdc.platform.generic", but the 'deviceName' and 'catalogName' parameters have not been set.

    2. The XDCtools version has been set to 3.25.04.88, which is incompatible with the SYS/BIOS 6.40.01.15 used by TI-RTOS for Sitara 2.0.1.23.

    I was able to get the example project to compile by:

    a. Changing the Platform to ti.platforms.beaglebone. The correct platform to use depends upon your hardware. Are you using a TI EVM or a custom board?

    b. Changing the XTCtools version to 3.30.1.25 which is the version listed in the release notes for TI-RTOS for Sitara 2.0.1.23.

  • Thank you, but this test project isn't interesting, I've created it only to check does XGConf work in general in my CCS or not. It works. And now I need XGConf works on my current project, which we've discussed early.
  • Sergei Petrov said:
    And now I need XGConf works on my current project, which we've discussed early.

    Sergei, it looks like your current project is corrupted somehow. 

    You can try the steps below to clean out your CCS environment/workspace to see if that helps.

    If not, then I would suggest creating a new project based on your existing current project. Another option is to send me your project folder so i can inspect the contents to see if I can find what is corrupted.

    Thanks

    ki

  • >>You can try the steps below to clean out your CCS environment/workspace to see if that helps.
    Can you count this steps? For avoiding any mistakes and to be sure that I will do all it properly.

    >>If not, then I would suggest creating a new project based on your existing current project. Another option is to send me your project folder so i >>can inspect the contents to see if I can find what is corrupted.
    I hope you understand I can't send you my project, might you count which files and folder do you need for inspecting?
  • Sergei Petrov said:
    Can you count this steps? For avoiding any mistakes and to be sure that I will do all it properly.

    The 2nd (-clean) and 3rd (clean the workspace) steps in the link below is what I was thinking:

    http://dev.ti.com/tirex/explore/node?node=AHgdNK.izUYqoyuE4l7Atg__FUz-xrs__LATEST

    Sergei Petrov said:
    I hope you understand I can't send you my project, might you count which files and folder do you need for inspecting?

    I understand. What I am hoping for is the .*project metadata files (all three) in the project folder.

    Thanks

    ki  

  • Hello

    What's about my files?

  • Thank you for the files. I was unable to reproduce the issue however. I will need to escalate this to the engineering team for more suggestions.
  • We are still at a loss regarding the error. Can you reproduce the issue again and then provide all the logs in <workspace>\.metadata?
  • Thanks. The logs indicate a parser error in XDCtools. Can you try using a later version of XDCtools to see if that helps? It is a bit of a longshot since I have the same XDCtools version installed and cannot reproduce the issue. But it is worth a try. If that does not help, I'll have to request a full test case - a project that can reproduce the error.

    Thanks
    ki
  • is the XDCtools version 3.51.02.21 right version for my CCS?

  • So, I've tried XDCTools 3.51.02.21 and have had this:
    Building file: "../app_r.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/tirtos_sitara_2_00_01_23/packages;C:/ti/ccsv8/ccs_base;D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs;C:/ti/xdctools_3_51_02_21_core;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_45_01_29/packages;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_25_00_09/packages;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_05_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p BEMPRU -r release -b "D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs/BEMPRU/config.bld" -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" --compileOptions "-g --optimize_with_debug" "../app_r.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app_r.xea8fnv from package/cfg/app_r_pea8fnv.cfg ...
    subdir_rules.mk:12: recipe for target 'build-678625823-inproc' failed
    error: xdc.cfg.Program: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package.mak:204: package/cfg/app_r_pea8fnv.xdl] Error 1
    Warning: directory "C:/ti/xdctools_3_51_02_21_core" on package path has a "packages" subdirectory - did you mean this instead?
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-678625823-inproc] Error 1
    "C:\Program Files\Git\bin\git.exe" "log" "-1" >sha1

    Building file: "../app_r.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/tirtos_sitara_2_00_01_23/packages;C:/ti/ccsv8/ccs_base;D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs;C:/ti/xdctools_3_51_02_21_core;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_45_01_29/packages;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_25_00_09/packages;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_05_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p BEMPRU -r release -b "D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs/BEMPRU/config.bld" -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" --compileOptions "-g --optimize_with_debug" "../app_r.cfg"
    configuring app_r.xea8fnv from package/cfg/app_r_pea8fnv.cfg ...
    subdir_rules.mk:12: recipe for target 'build-678625823-inproc' failed
    error: xdc.cfg.Program: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_51_02_21_core\gmake.exe: *** [package.mak:204: package/cfg/app_r_pea8fnv.xdl] Error 1
    Warning: directory "C:/ti/xdctools_3_51_02_21_core" on package path has a "packages" subdirectory - did you mean this instead?
    js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[2]: *** [build-678625823-inproc] Error 1
    gmake[1]: *** [build-678625823] Error 2
    subdir_rules.mk:9: recipe for target 'build-678625823' failed
    makefile:647: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****
  • Next I've tried XDCtools 3.50.08.24 and have got this:
    Building file: "../app_r.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_50_08_24_core/xs" --xdcpath="C:/ti/tirtos_sitara_2_00_01_23/packages;C:/ti/ccsv8/ccs_base;D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs;C:/ti/xdctools_3_50_08_24_core;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_45_01_29/packages;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_25_00_09/packages;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_05_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p BEMPRU -r release -b "D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs/BEMPRU/config.bld" -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" --compileOptions "-g --optimize_with_debug" "../app_r.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app_r.xea8fnv from package/cfg/app_r_pea8fnv.cfg ...
    subdir_rules.mk:12: recipe for target 'build-678625823-inproc' failed
    error: xdc.cfg.Program: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
    js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/app_r_pea8fnv.xdl] Error 1
    Warning: directory "C:/ti/xdctools_3_50_08_24_core" on package path has a "packages" subdirectory - did you mean this instead?
    js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-678625823-inproc] Error 1
    "C:\Program Files\Git\bin\git.exe" "log" "-1" >sha1

    Building file: "../app_r.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_50_08_24_core/xs" --xdcpath="C:/ti/tirtos_sitara_2_00_01_23/packages;C:/ti/ccsv8/ccs_base;D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs;C:/ti/xdctools_3_50_08_24_core;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_45_01_29/packages;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_25_00_09/packages;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_05_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p BEMPRU -r release -b "D:/Workspace/BEMP_RUDZL_01.02.50_Event_Log_split_IS/targetConfigs/BEMPRU/config.bld" -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" --compileOptions "-g --optimize_with_debug" "../app_r.cfg"
    configuring app_r.xea8fnv from package/cfg/app_r_pea8fnv.cfg ...
    subdir_rules.mk:12: recipe for target 'build-678625823-inproc' failed
    error: xdc.cfg.Program: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
    js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_50_08_24_core\gmake.exe: *** [package/cfg/app_r_pea8fnv.xdl] Error 1
    Warning: directory "C:/ti/xdctools_3_50_08_24_core" on package path has a "packages" subdirectory - did you mean this instead?
    js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[2]: *** [build-678625823-inproc] Error 1
    gmake[1]: *** [build-678625823] Error 2
    subdir_rules.mk:9: recipe for target 'build-678625823' failed
    makefile:647: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****
  • Your project has a dependency on an older version of XDC. Not a surprise since your project also uses TI-RTOS for Sitara 2.0. Instead of migrating your project to newer version, it would be best if you can provide an example project test instead.
  • Do you mean our working project?

  • I just need a full (project+source) project of some sort where you experience the same issue. Hopefully it is not your actual working project since I'm sure it involves many source files and other setup. I just need some test case project that has the same issue - the simpler the better.
  • Hi Sergei,
    Any change you can provide some kind of test case requested in my post above?

    Thanks
    ki
  • Hello

    Sorry for my delay. Last week was hard.

    I've created new project, but in this time I've got this:

    Please fix the following errors. Then close and relaunch the XGConf editor.
    Error: Can't find the platform package 'ti.platforms.evmAM3359'. TI platforms are no longer shipped as part of XDCtools (C:/ti/xdctools_3_32_00_06_core). Please ensure you are either using a pre-3.30 version of XDCtools or you have added a product that includes your platform support along the path 'C:/ti/tirtos_sitara_2_00_01_23/packages;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_40_01_15/packages;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_23_01_01/packages;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_00_28/packages;C:/ti/xdctools_3_32_00_06_core;C:/ti/tirtos_sitara_2_00_01_23/products/bios_6_45_01_29;C:/ti/tirtos_sitara_2_00_01_23/products/ndk_2_25_00_09;C:/ti/tirtos_sitara_2_00_01_23/products/uia_2_00_05_50;D:/Workspace/test/.config;C:/ti/xdctools_3_32_00_06_core/packages'. Check that this path names a directory containing the necessary platform support and that the platform name is properly spelled.

    In Project Properties->CCS General->Products->Target I put armv8 and CCS offers me "ti.platforms.evmAM3359"

    After that I've had error in XGConf.

  • How can I know properly Target and right Platform?
  • I can't comment on the target/platform, as that is beyond my expertise. But If sounds like you have a project with a cfg file that can reproduce the error. The project doesn't have to build, I just need the project +cfg file. If you can zip and attach here, that would be great
  • Hello

    Sorry for my delay, was a little bit busy.

    This my test project:

    15500.test.zip

  • Thank you. I imported your project in to my CCSv8.3, and also installed all the same versions of dependent software (TI-RTOS, etc) used by the project. The cfg file opens fine in xgconf:

    The only modification I made was changing the rtsc target from 'armv8' to 'ti.targets.arm.elf.A8Fnv' so that it would build correctly. Otherwise I left everything alone.

    There must be something else specific to your environment that is causing the issue. Unfortunately I don't have much more suggestions to offer outside of reinstalling everything and creating a new project from scratch...