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.

xdctools_3_32_00_06_core target not found

Other Parts Discussed in Thread: SYSBIOS

Hello,

I am trying to rebuild library with XDC tools 3_32_00_06 version, the build fails with below error. The same code works with xdctools_3_25_02_70.

XDC 3.32 documentation says "Beginning with the 3.31 release, all embedded targets and platforms have been removed. They are now delivered with middleware products, such as TI-RTOS and Grace, that have dependencies on specific targets and platforms"

How do we add these products into project config?

making package.mak (because of package.bld) ...
js: "./config.bld", line 76: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'gnu.targets.arm' along the path: 'D:/ti/bios_6_45_01_29/packages --jobs;D:/ti/xdctools_3_32_00_06_core/packages;../../..;'. Ensure that the package path is set correctly.
gmake[1]: *** No rule to make target `4'. Stop.
xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/nsp/drv/,4] Error 2
makefile:41: recipe for target 'all' failed
gmake: *** [all] Error 2

Regards,

Prasad

  • Hi Prasad,

    By Adding BIOS (var BIOS = xdc.useModule('ti.sysbios.BIOS');) to your config file will automatically add the search path for platforms & targets. It is a little odd, from the error above it seems like the path is being added to the package path....

    A few questions:
    What OS are you developing on?
    Are you building with CCS, which version?
    What device are you building for?
    Can you verify the <bios_installation_dir>/packages/gnu/targets/arm directory exists & is populated (maybe a problem during installation)?
    Can you post your config file?

    Thanks,
    -- Emmanuel
  • Hello Emmanuel,

    I am on windows7 and using bios_6_45_01_29 for this application. I am not building with CCS, building standalone NSP library for TDA2xx(vayu). I checked for packages/gnu/targets/arm in my BIOS directory and i could see it there. The same librry builds without any error with xdctools3_25_02_70

    Contents of my config.bld

    /*
    * ======== config.bld ========
    * Sample Build configuration script
    */

    /*
    * Must define Code Generation Tools, XDC Tools and NDK installation locations
    * here
    *
    * These variables are used to find the correct header files during a
    * rebuild of the NSP ethernet driver librares.
    *
    * Note: when defining the path to your Code Generation Tools, XDC Tools and
    * NDK installations, you should use the forward slash ("/") character for path
    * separation.
    *
    * For example, if you have installed NDK in the following
    * location:
    *
    * C:\Program Files\Texas Instruments\ndk_2_22_01_14
    *
    * Then you should specify ndkRoot as follows:
    *
    * // note use of "/" as path seperator:
    * var ndkRoot = "D:/NDK/TI-NDK/ndk_2_20_03_24/packages";
    *
    */

    /*
    * Dependent Packages install locations. Update these for your system.
    */

    var os = java.lang.System.getProperty("os.name");

    if (os.contains("Linux")) {
    var toolsDir = "/opt/ti/";
    } else if (os.contains("Windows")) {
    var toolsDir = "d:/ti/";
    } else {
    throw "OS is not supported!";
    }

    var compilerDir = toolsDir + "ccsv6/tools/compiler/";

    var ndkRoot = java.lang.System.getenv("NDK_ROOT");
    var biosRoot = java.lang.System.getenv("BIOS_ROOT");
    var tiArmRoot = java.lang.System.getenv("TIARMCGT_ROOT");
    var gccRoot = java.lang.System.getenv("GCC_ROOT");
    var tiDspRoot = java.lang.System.getenv("CGT6X_ROOT");

    if (ndkRoot == null) ndkRoot = toolsDir + "ndk_2_24_02_31";
    if (biosRoot == null) biosRoot = toolsDir + "bios_6_45_01_29";
    if (tiArmRoot == null) tiArmRoot = compilerDir + "ti-cgt-arm_5.2.5";
    if (gccRoot == null) gccRoot = compilerDir + "gcc-arm-none-eabi-4_8-2014q3";
    if (tiDspRoot == null) tiDspRoot = compilerDir + "c6000_7.4.14";

    if (!java.io.File(ndkRoot).exists()) throw "define NDK_ROOT!";
    if (!java.io.File(biosRoot).exists()) throw "define BIOS_ROOT!";
    if (!java.io.File(tiArmRoot).exists()) throw "define TIARMCGT_ROOT!";
    if (!java.io.File(gccRoot).exists()) throw "define GCC_ROOT!";
    if (!java.io.File(tiDspRoot).exists()) throw "define CGT6X_ROOT!";

    var commonInc = "-I\"" + biosRoot + "/packages\" " +
    "-I\"" + ndkRoot + "/packages\" ";

    var tiDspCommonCopts = " ";
    var tiDspInc = " -I\"" + tiDspRoot + "/include\" ";
    var tiArmCommonCopts = " ";
    var tiArmInc = " -I\"" + tiArmRoot + "/include\" ";
    var gccCommonCopts = " ";
    var gccInc = " -I\"" + gccRoot + "/include\" ";

    /* TI C674x DSP Target compiler options */
    var tiC674DSPTarget = xdc.useModule('ti.targets.elf.C674');
    tiC674DSPTarget.rootDir = tiDspRoot;
    tiC674DSPTarget.ccOpts.prefix += tiDspCommonCopts + " -mi10 -mo";
    tiC674DSPTarget.ccOpts.suffix += tiDspInc + commonInc;

    /* TI C66x DSP Target compiler options */
    var tiC66DSPTarget = xdc.useModule('ti.targets.elf.C66');
    tiC66DSPTarget.rootDir = tiDspRoot;
    tiC66DSPTarget.ccOpts.prefix += tiDspCommonCopts + " -mi10 -mo";
    tiC66DSPTarget.ccOpts.suffix += tiDspInc + commonInc;

    /* GCC ARM v7A Cortex A8 Target compiler options */
    var gccA8MPUTarget = xdc.useModule('gnu.targets.arm.A8F');
    gccA8MPUTarget.rootDir = gccRoot;
    gccA8MPUTarget.ccOpts.prefix += gccCommonCopts + " -DCORTEX_AX";
    gccA8MPUTarget.ccOpts.suffix += gccInc + commonInc;

    /* GCC ARM v7A Cortex A15 Target compiler options */
    var gccA15MPUTarget = xdc.useModule('gnu.targets.arm.A15F');
    gccA15MPUTarget.rootDir = gccRoot;
    gccA15MPUTarget.ccOpts.prefix += gccCommonCopts + " -DCORTEX_AX";
    gccA15MPUTarget.ccOpts.suffix += gccInc + commonInc;

    /* TI ARM v7A Cortex A8 Target compiler options */
    var tiA8MPUTarget = xdc.useModule('ti.targets.arm.elf.A8F');
    tiA8MPUTarget.rootDir = tiArmRoot;
    tiA8MPUTarget.ccOpts.prefix += tiArmCommonCopts + " -ms -DCORTEX_AX";
    tiA8MPUTarget.ccOpts.suffix += tiArmInc + commonInc;

    /* TI ARM v7A Cortex A15 Target compiler options */
    var tiA15MPUTarget = xdc.useModule('ti.targets.arm.elf.A15Fnv');
    tiA15MPUTarget.rootDir = tiArmRoot;
    tiA15MPUTarget.ccOpts.prefix += tiArmCommonCopts + " -ms -DCORTEX_AX";
    tiA15MPUTarget.ccOpts.suffix += tiArmInc + commonInc;

    /* GCC ARM v7M Cortex M3 Target compiler options */
    var gccM3IPUTarget = xdc.useModule('gnu.targets.arm.M3');
    gccM3IPUTarget.rootDir = gccRoot;
    gccM3IPUTarget.ccOpts.prefix += gccCommonCopts + " -DCORTEX_MX";
    gccM3IPUTarget.ccOpts.suffix += gccInc + commonInc;

    /* GCC ARM v7M Cortex M4 Target compiler options */
    var gccM4IPUTarget = xdc.useModule('gnu.targets.arm.M4');
    gccM4IPUTarget.rootDir = gccRoot;
    gccM4IPUTarget.ccOpts.prefix += gccCommonCopts + " -DCORTEX_MX";
    gccM4IPUTarget.ccOpts.suffix += gccInc + commonInc;

    /* TI ARM v7M Cortex M3 Target compiler options */
    var tiM3IPUTarget = xdc.useModule('ti.targets.arm.elf.M3');
    tiM3IPUTarget.rootDir = tiArmRoot;
    tiM3IPUTarget.ccOpts.prefix += tiArmCommonCopts + " -DCORTEX_MX";
    tiM3IPUTarget.ccOpts.suffix += tiArmInc + commonInc;

    /* TI ARM v7M Cortex M4 Target compiler options */
    var tiM4IPUTarget = xdc.useModule('ti.targets.arm.elf.M4');
    tiM4IPUTarget.rootDir = tiArmRoot;
    tiM4IPUTarget.ccOpts.prefix += tiArmCommonCopts + " -DCORTEX_MX";
    tiM4IPUTarget.ccOpts.suffix += tiArmInc + commonInc;

    /* List the compiler targets in in the Build.targets array */
    Build.targets = [
    //tiC674DSPTarget,
    //tiC66DSPTarget,
    //gccA8MPUTarget,
    gccA15MPUTarget,
    tiA8MPUTarget,
    //tiA15MPUTarget,
    //gccM3IPUTarget,
    //gccM4IPUTarget,
    tiM3IPUTarget,
    tiM4IPUTarget
    ];

  • Hi Prasad,

    Can you post the command & XDC path used when triggering the build?

    Thanks,
    -- Emmanuel
  • Hello Emmanuel,

    Could fix this issue. It was because of gmake binary. I had installed strawberry perl and as part of installation it has added gmake path to environment variables. I removed that entry and gave path to XDC tools gmake binary. It is building now. Thanks for help.

    Regards,
    Prasad