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/TMDSLCDK138: TMDSLCDK138

Part Number: TMDSLCDK138
Other Parts Discussed in Thread: OMAPL138, SYSBIOS, TCI6638K2K, 66AK2H12, TCI6630K2L, 66AK2E05, 66AK2G02, AM5728, AM3359, AM4379, CCSTUDIO, AMIC110, MATHLIB

Tool/software: Code Composer Studio

Hello,

Windows- CCSv7.2 + XDCtools 3.32.2.25 + SYS/BIOS 6.51.0.15 + OMAPL138PDK 1.0.1 + processor_sdk_rtos_omapl138 4.00.00.04 + GPIO_LedBlink_lcdkOMAPL138_c674xTestProject

. - Building results of 10 errors as follows:

/**
* \file gpio_test.cfg
*
* \brief Sysbios config file for GPIO test project on OMAPL138 LCDK.
*
*/

/*
* Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

/* Load all required BIOS/XDC runtime packages */
var Memory = xdc.useModule('xdc.runtime.Memory');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
var Log = xdc.useModule('xdc.runtime.Log');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
var ECM = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
var core = xdc.useModule('ti.sysbios.hal.Core');
var Cache = xdc.useModule ("ti.sysbios.hal.Cache");
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
var Platform = xdc.useModule('ti.platforms.evmOMAPL138.Platform');

var devType = "omapl138"

/* Load the OSAL package */
var osType = "tirtos"
var Osal = xdc.useModule('ti.osal.Settings');
Osal.osType = osType;
Osal.socType = devType;

/*use CSL package*/
var Csl = xdc.loadPackage('ti.csl');
Csl.Settings.deviceType = devType;

/* Load the Board package and set the board name */
var Board = xdc.loadPackage('ti.board');
Board.Settings.boardName = "lcdkOMAPL138";

/* Load Profiling package */
/*var Utils = xdc.loadPackage('ti.utils.profiling');*/

/* Load the gpio package */
var Gpio = xdc.loadPackage('ti.drv.gpio');
Gpio.Settings.enableProfiling = false;
Gpio.Settings.socType = devType;

/* Load the uart package */
var Uart = xdc.useModule('ti.drv.uart.Settings');
Uart.socType = devType;

/* Load the I2C package - required by board */
var I2c = xdc.loadPackage('ti.drv.i2c');
I2c.Settings.socType = devType;

var System = xdc.useModule('xdc.runtime.System');
SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;

/* Load and use the CSL packages */
var Csl = xdc.useModule('ti.csl.Settings');
Csl.deviceType = devType;

/* Create a default system heap using ti.bios.HeapMem. */
var heapMemParams1 = new HeapMem.Params;
heapMemParams1.size = 8192 * 25;
heapMemParams1.sectionName = "systemHeap";
Program.global.heap0 = HeapMem.create(heapMemParams1);


/* No runtime stack checking is performed */
Task.checkStackFlag = false;


/* Reduce the number of task priorities */
Task.numPriorities = 4;

/* ================ Task configuration ================ */
var task0Params = new Task.Params();
task0Params.instance.name = "echo";
task0Params.stackSize = 0x1000;
Program.global.echo = Task.create("&gpio_test", task0Params);

/* This is the default memory heap. */
Memory.defaultHeapInstance = Program.global.heap0;

Program.sectMap["systemHeap"] = Program.platform.stackMemory;
Program.sectMap[".fardata:benchmarking"] = "DDR";

/****** IPC - Shared Memory Settings ********/
/* IPC packages */

var memmap = Program.cpu.memoryMap;

/*Startup = xdc.useModule('xdc.runtime.Startup');
Startup.firstFxns.$add('&myStartupFxn');*/

/* Enable BIOS Task Scheduler */
BIOS.taskEnabled = true;

/*
* Enable Event Groups here and registering of ISR for specific GEM INTC is done
* using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
*/
var exception = xdc.useModule('ti.sysbios.family.c64p.Exception');
exception.enablePrint = true;

/*
* @(#) ti.sysbios.genx; 2, 0, 0, 0,275; 4-29-2009 15:45:06; /db/vtree/library/trees/avala/avala-k25x/src/
*/

/* Define and add one Task Hook Set */
/*Task.addHookSet({
registerFxn: '&TaskRegisterId',
switchFxn: '&mySwitch',
});*/
LoggingSetup.sysbiosSwiLogging = true;
LoggingSetup.sysbiosHwiLogging = true;
LoggingSetup.sysbiosSemaphoreLogging = true;
LoggingSetup.loadHwiLogging = true;
LoggingSetup.loadSwiLogging = true;
LoggingSetup.loadTaskLogging = true;

Thanks,

Itzhak Kroin

  • SYS/BIOS 6.51 requires XDCtools 3.50. It says so in Dependencies section of Release Notes. I think CCS 7.2 comes with XDCtools 3.50 so it should be easy to switch to it in the project properties.
  • Hi Sasha,

    Indeed XDCtools 3.50 included.  I try to build example project again under the new XDC version. Found problems with pdkProjectCreate and example projects does not created. See results below:

    @REM ******************************************************************************
    @REM * FILE PURPOSE: PDK Unit Test and Example Project Creator
    @REM ******************************************************************************
    @REM * FILE NAME: pdkProjectCreate.bat
    @REM *
    @REM * DESCRIPTION:
    @REM * The script file is used to create the test and example projects of all
    @REM * components under PDK. These projects are available in the specified
    @REM * workspace.
    @REM *
    @REM * Syntax:
    @REM * pdkProjectCreate.bat [soc] [board] [endian] [module] [processor] [pdkDir]
    @REM *
    @REM * Description: (first option is default)
    @REM * soc - AM335x / AM437x / AM571x / AM572x / K2E / K2G / K2K / K2H / K2L /
    @REM * C6678 / C6657 / DRA72x / DRA75x / DRA78x / OMAPL137 / OMAPL138
    @REM * board - all (use "all" for K2X and C66X SOCs)
    @REM * -or-
    @REM * Refer to pdk_<soc>_<version>\packages\ti\board\lib
    @REM * for valid board inputs for the soc
    @REM * endian - little / big
    @REM * module - all
    @REM * -or-
    @REM * aif2 / bcp / cppi / csl / dfe / emac / fatfs / fm / fftc /
    @REM * gpio / hyplnk / i2c / icss_emac / iqn2 / mcasp / mcbsp / mmap / mmcsd /
    @REM * nimu / nimu_icss / nwal / osal / pa / pcie / pktlib / pruss / qm / rm /
    @REM * sa /serdes-diag / spi / srio / tcp3d / tfw / transportqmss /
    @REM * transportsrio / tsip / uart / usb / wdtimer / vps
    @REM * processor - arm / dsp / m4
    @REM * pdkDir - THIS FILE LOCATION / "C:\ti\pdk_<soc>_<version>\packages"
    @REM *
    @REM * Example:
    @REM * a) pdkProjectCreate.bat
    @REM * - Creates all module projects for the AM335x soc for arm little endian
    @REM * b) pdkProjectCreate.bat AM437x
    @REM * - Creates all module projects for the AM437x soc for arm little endian
    @REM * c) pdkProjectCreate.bat AM437x idkAM437x
    @REM * - Creates all module projects for idkAM437x device for arm little endian
    @REM * d) pdkProjectCreate.bat AM571x evmAM571x little
    @REM * - Creates all module projects for evmAM571x device for arm little endian
    @REM * e) pdkProjectCreate.bat AM571x evmAM571x little i2c dsp
    @REM * - Creates i2c module projects for evmAM571x device for dsp little endian
    @REM * f) pdkProjectCreate.bat K2H all little i2c arm
    @REM * - Creates i2c module projects for K2H device for arm little endian
    @REM * g) pdkProjectCreate.bat C6678 all little hyplnk dsp
    @REM * - Creates hyplnk module projects for C6678 device for dsp little endian
    @REM *
    @REM * Copyright (C) 2012-2017, Texas Instruments, Inc.
    @REM *****************************************************************************
    @echo OFF
    setlocal enabledelayedexpansion

    REM Lists of valid input parameters - MUST be updated as new input parameters are added
    REM *****************************************************************************
    set soc_list=AM335x AM437x AM571x AM572x K2E K2K K2H K2L K2G C6678 C6657 DRA72x DRA75x DRA78x OMAPL137 OMAPL138 C6748
    set endian_list=little big
    set module_list=all aif2 bcp cppi csl dfe emac fatfs fm fftc gpio gpmc hyplnk i2c icss_emac iqn2 mcasp mcbsp mmap mmcsd nimu nimu_icss nwal osal pa pcie pktlib pruss qm rm sa serdes_diag spi srio tcp3d tfw transportqmss transportsrio tsip uart usb wdtimer vps
    set proc_list=arm dsp m4

    REM Parameter Validation: Check if the argument was passed to the batch file.
    REM *****************************************************************************
    REM Argument [soc] is used to set SOC variable.
    set tempVar1=%1
    if not defined tempVar1 goto nosoc
    set SOC=%tempVar1%
    goto socdone
    :nosoc
    set SOC=AM335x
    :socdone

    REM Argument [board] is used to set BOARD variable.
    REM This is the board type of the soc for which project are to be created.
    set tempVar2=%2
    if not defined tempVar2 goto noboard
    set BOARD=%tempVar2%
    goto boarddone
    :noboard
    set BOARD=all
    :boarddone

    REM Argument [endian] is used to set ENDIAN variable.
    REM This is Endianess of the projects being created.
    REM Valid Values are 'little' and 'big'. Defaults to 'little'.
    set tempVar3=%3
    if not defined tempVar3 goto littleendian
    set ENDIAN=%tempVar3%
    goto endiandone
    :littleendian
    set ENDIAN=little
    :endiandone

    REM Argument [module] is used to set MODULE variable.
    REM This is specific module for which projects are created.
    REM Valid Values are LLD name. Defaults to all LLD's.
    set tempVar4=%4
    if not defined tempVar4 goto nomodule
    set MODULE=%tempVar4%
    goto moduledone
    :nomodule
    set MODULE=all
    :moduledone

    REM Argument [processor] is used to set PROCESSOR variable.
    REM This is specific processor type for which projects are created.
    REM Valid Values are arm, dsp, or m4 . Defaults to arm.
    set tempVar5=%5
    if not defined tempVar5 goto noprocessor
    set PROCESSOR=%tempVar5%
    goto processordone
    :noprocessor
    set PROCESSOR=arm
    :processordone

    REM Argument [pdkDir] is used to set PDK_SHORT_NAME. This is PDK directory
    REM where project description files are located. If there is no value passed,
    REM it defaults to the file location directory. Then convert the variable to
    REM short name to avoid issues using batch file commands.
    set tempVar6=%6
    if not defined tempVar6 goto noparameter
    set PDK_SHORT_NAME=%tempVar6%
    goto done
    :noparameter
    set PDK_SHORT_NAME=%~sdp0
    :done

    if not defined SDK_INSTALL_PATH (
    set SDK_INSTALL_PATH=C:/ti
    )

    REM *****************************************************************************

    echo =========================================================================
    echo Configuration:
    echo. SOC : %SOC%
    echo BOARD : %BOARD%
    echo. ENDIAN : %ENDIAN%
    echo. MODULE : %MODULE%
    echo. PROCESSOR : %PROCESSOR%
    echo. PDK_SHORT_NAME : %PDK_SHORT_NAME%
    echo =========================================================================
    echo Checking Configuration...

    for %%a in (%soc_list%) do (
    if %SOC% == %%a (
    goto end_soc_check
    )
    )
    echo ERROR: SOC (%SOC%) is invalid
    goto CONFIG_ERR
    :end_soc_check

    if %BOARD% == all (
    goto end_board_check
    )
    if %BOARD% == iceAMIC110 (
    if %SOC% == AM335x (
    goto end_board_check
    )
    goto board_check_error
    )
    set board_type=!BOARD:%SOC%=!
    if not %board_type% == %BOARD% (
    goto end_board_check
    )
    :board_check_error
    echo ERROR: Board (%BOARD%) is invalid for the specified SOC (%SOC%)
    goto CONFIG_ERR
    :end_board_check

    for %%a in (%endian_list%) do (
    if %ENDIAN% == %%a (
    goto end_endian_check
    )
    )
    echo ERROR: Endian (%ENDIAN%) is invalid
    goto CONFIG_ERR
    :end_endian_check

    for %%a in (%module_list%) do (
    if %MODULE% == %%a (
    goto end_module_check
    )
    )
    echo ERROR: Module (%MODULE%) is invalid
    goto CONFIG_ERR
    :end_module_check

    for %%a in (%proc_list%) do (
    if %PROCESSOR% == %%a (
    goto end_proc_check
    )
    )
    echo ERROR: Processor (%PROCESSOR%) is invalid
    goto CONFIG_ERR
    :end_proc_check

    if %SOC% == AM335x (
    if %PROCESSOR% == dsp (
    echo ERROR: The AM335x soc does not contain a DSP processor
    goto CONFIG_ERR
    ) else if %PROCESSOR% == m4 (
    echo ERROR: The AM335x soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %ENDIAN% == big (
    echo ERROR: The AM335x soc's arm does not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == AM437x (
    if %PROCESSOR% == dsp (
    echo ERROR: The AM437x soc does not contain a DSP processor
    goto CONFIG_ERR
    ) else if %PROCESSOR% == m4 (
    echo ERROR: The AM437x soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %ENDIAN% == big (
    echo ERROR: The AM437x soc's arm does not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == AM571x (
    if %ENDIAN% == big (
    echo ERROR: The AM571x soc's processor's do not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == AM572x (
    if %ENDIAN% == big (
    echo ERROR: The AM572x soc's processor's do not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == K2K (
    if %PROCESSOR% == m4 (
    echo ERROR: The K2K soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The K2K soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == K2H (
    if %PROCESSOR% == m4 (
    echo ERROR: The K2H soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The K2H soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == K2E (
    if %PROCESSOR% == m4 (
    echo ERROR: The K2E soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The K2E soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == K2L (
    if %PROCESSOR% == m4 (
    echo ERROR: The K2L soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The K2L soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == K2G (
    if %PROCESSOR% == m4 (
    echo ERROR: The K2G soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The K2G soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == OMAPL137 (
    if %PROCESSOR% == m4 (
    echo ERROR: The OMAPL137 soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The OMAPL137 soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    if %PROCESSOR% == dsp (
    if %ENDIAN% == big (
    echo ERROR: The OMAPL137 soc's dsp does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == OMAPL138 (
    if %PROCESSOR% == m4 (
    echo ERROR: The OMAPL138 soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    if %ENDIAN% == big (
    echo ERROR: The OMAPL138 soc's arm does not support big endian
    goto CONFIG_ERR
    )
    )
    if %PROCESSOR% == dsp (
    if %ENDIAN% == big (
    echo ERROR: The OMAPL138 soc's dsp does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == C6748 (
    if %PROCESSOR% == m4 (
    echo ERROR: The C6748 soc does not contain a M4 processor
    goto CONFIG_ERR
    )
    if %PROCESSOR% == arm (
    echo ERROR: The C6748 soc does not contain an arm processor
    goto CONFIG_ERR
    )
    if %PROCESSOR% == dsp (
    if %ENDIAN% == big (
    echo ERROR: The C6748 soc's dsp does not support big endian
    goto CONFIG_ERR
    )
    )
    ) else if %SOC% == C6678 (
    if %PROCESSOR% == m4 (
    echo ERROR: The C6678 soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    echo ERROR: The C6678 soc does not contain an arm processor
    goto CONFIG_ERR
    )
    ) else if %SOC% == C6657 (
    if %PROCESSOR% == m4 (
    echo ERROR: The C6657 soc does not contain a M4 processor
    goto CONFIG_ERR
    )

    if %PROCESSOR% == arm (
    echo ERROR: The C6657 soc does not contain an arm processor
    goto CONFIG_ERR
    )
    ) else if %SOC% == DRA72x (
    if %ENDIAN% == big (
    echo ERROR: The DRA72x soc's processor's do not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == DRA75x (
    if %ENDIAN% == big (
    echo ERROR: The DRA75x soc's processor's do not support big endian
    goto CONFIG_ERR
    )
    ) else if %SOC% == DRA78x (
    if %ENDIAN% == big (
    echo ERROR: the DRA78x soc's processor's do not support big endian
    goto CONFIG_ERR
    )
    ) else (
    echo ERROR: Invalid soc
    goto CONFIG_ERR
    )

    goto CONFIG_COMPLETE

    :CONFIG_ERR
    echo Exiting...
    echo =========================================================================
    goto ENDSCRIPT

    :CONFIG_COMPLETE
    echo Complete
    echo =========================================================================

    REM *****************************************************************************
    REM * Version Information of the various tools etc required to build the test
    REM * projects. Customers are free to modify these to meet their requirements.
    REM *****************************************************************************

    REM This is to control the CCS version specific project create command
    REM Set to 'no' when using CCSv5 and CCSv6 or set to 'yes' when using CCSv4
    set IS_CCS_VERSION_4=no

    REM Set to 'no' when using QT, EVM, VDB, or other hardware. Set to 'yes' only when using the simulator.
    set IS_SIMULATOR_SUPPORT_NEEDED=no

    REM Install Location for CCS
    set CCS_INSTALL_PATH=%TOOLS_INSTALL_PATH%\ccsv7

    REM Workspace where the PDK projects will be created.
    set MY_WORKSPACE=%PDK_SHORT_NAME%MyExampleProjects

    REM macros.ini location
    set MACROS_FILE=%PDK_SHORT_NAME%\macros.ini

    REM This is the format of the executable being created
    REM Valid Values are 'ELF' and 'COFF'
    set OUTPUT_FORMAT=ELF

    REM Version of CG-Tools
    set CGT_VERSION=8.1.3

    REM Version of CG-ARM-Tools for M4
    set CGT_M4_VERSION=16.9.2.LTS

    REM Version of XDC previouse=3.32.01.22
    set XDC_VERSION=3.50.02.20

    REM Version of BIOS
    set BIOS_VERSION=6.51.00.15

    REM Version of CG-Tools for ARM
    set CGT_VERSION_ARM=GNU_4.9.3:Linaro

    REM Version of CG-Tools for ARM
    set CGT_VERSION_ARM9=16.9.2.LTS

    REM Version of the IPC
    set IPC_VERSION=3.46.00.02

    REM EDMA3 Version
    set EDMA_VERSION=2.12.04.28

    REM Version of the PDK
    set PDK_VERSION=1.0.1

    REM Version of the NDK
    set NDK_VERSION=2.25.01.11

    REM Version of UIA
    set UIA_VERSION=2.20.00.02

    REM PDK Part Number & Platform name
    if %SOC% == K2K (
    set PDK_PARTNO=TCI6638
    set PDK_ECLIPSE_ID=com.ti.pdk.k2hk
    set RTSC_PLATFORM_NAME=ti.platforms.evmTCI6638K2K
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.TCI6638K2K"
    )
    ) else if %SOC% == K2H (
    set PDK_PARTNO=TCI6636
    set PDK_ECLIPSE_ID=com.ti.pdk.k2hk
    set RTSC_PLATFORM_NAME=ti.platforms.evmTCI6636K2H
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.66AK2H12"
    )
    ) else if %SOC% == K2L (
    set PDK_PARTNO=TCI6630
    set PDK_ECLIPSE_ID=com.ti.pdk.k2l
    set RTSC_PLATFORM_NAME=ti.platforms.evmTCI6630K2L
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.TCI6630K2L"
    )
    ) else if %SOC% == K2E (
    set PDK_PARTNO=66AK2E05
    set PDK_ECLIPSE_ID=com.ti.pdk.k2e
    set RTSC_PLATFORM_NAME=ti.platforms.evmC66AK2E
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.66AK2E05"
    )
    ) else if %SOC% == K2G (
    set PDK_PARTNO=66AK2G02
    set PDK_ECLIPSE_ID=com.ti.pdk.k2g
    set RTSC_PLATFORM_NAME=ti.platforms.evmTCI66AK2G02
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.66AK2G02"
    )
    ) else if %SOC% == AM571x (
    set PDK_PARTNO=AM571X
    set PDK_ECLIPSE_ID=com.ti.pdk.am57xx
    set RTSC_PLATFORM_NAME=ti.platforms.idkAM571X
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.AM5728_RevA"
    ) else if %PROCESSOR% == m4 (
    set RTSC_TARGET=ti.targets.arm.elf.M4
    set CCS_DEVICE="Cortex M.AM5728_RevA"
    )
    ) else if %SOC% == AM572x (
    set PDK_PARTNO=AM572X
    set PDK_ECLIPSE_ID=com.ti.pdk.am57xx
    if %BOARD% == idkAM572x (
    set RTSC_PLATFORM_NAME=ti.platforms.idkAM572X
    ) else (
    set RTSC_PLATFORM_NAME=ti.platforms.evmAM572X
    )
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.AM5728_RevA"
    ) else if %PROCESSOR% == m4 (
    set RTSC_TARGET=ti.targets.arm.elf.M4
    set CCS_DEVICE="Cortex M.AM5728_RevA"
    )
    ) else if %SOC% == AM335x (
    set PDK_PARTNO=AM335
    set PDK_ECLIPSE_ID=com.ti.pdk.am335x
    set RTSC_PLATFORM_NAME=ti.platforms.evmAM3359
    set RTSC_TARGET=gnu.targets.arm.A8F
    set CCS_DEVICE="Cortex A.AM3359.ICE_AM3359"
    ) else if %SOC% == AM437x (
    set PDK_PARTNO=AM437
    set PDK_ECLIPSE_ID=com.ti.pdk.am437x
    set RTSC_PLATFORM_NAME=ti.platforms.evmAM437X
    set RTSC_TARGET=gnu.targets.arm.A9F
    set CCS_DEVICE="Cortex A.AM4379.IDK_AM437X"
    ) else if %SOC% == OMAPL137 (
    set PDK_PARTNO=OMAPL137
    set PDK_ECLIPSE_ID=com.ti.pdk.omapl137
    set RTSC_PLATFORM_NAME=ti.platforms.evmOMAPL137
    if %PROCESSOR% == arm (
    set RTSC_TARGET=ti.targets.arm.elf.Arm9
    set CCS_DEVICE="ARM9.OMAPL137"
    )
    ) else if %SOC% == OMAPL138 (
    set PDK_PARTNO=OMAPL138
    set PDK_ECLIPSE_ID=com.ti.pdk.omapl138
    set RTSC_PLATFORM_NAME=ti.platforms.evmOMAPL138
    if %PROCESSOR% == arm (
    set RTSC_TARGET=ti.targets.arm.elf.Arm9
    set CCS_DEVICE="ARM9.OMAPL138"
    )
    )else if %SOC% == C6748 (
    REM C6748 is the alias for OMAPL138 where the OMAPL138 settings will
    REM be used to create projects for C6748 SOC.
    set SOC=OMAPL138
    set BOARD=lcdkOMAPL138
    set PDK_PARTNO=OMAPL138
    set PDK_ECLIPSE_ID=com.ti.pdk.omapl138
    set RTSC_PLATFORM_NAME=ti.platforms.evmOMAPL138
    ) else if %SOC% == C6678 (
    set PDK_PARTNO=C6678L
    set PDK_ECLIPSE_ID=com.ti.pdk.c667x
    set RTSC_PLATFORM_NAME=ti.platforms.evm6678
    ) else if %SOC% == C6657 (
    set PDK_PARTNO=C6657
    set PDK_ECLIPSE_ID=com.ti.pdk.c665x
    set RTSC_PLATFORM_NAME=ti.platforms.evm6657
    ) else if %SOC% == DRA72x (
    set PDK_PARTNO=DRA72x
    set PDK_ECLIPSE_ID=com.ti.pdk.dra7xx
    set RTSC_PLATFORM_NAME=ti.platforms.evmDRA7XX
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.DRA72x"
    ) else if %PROCESSOR% == m4 (
    set RTSC_TARGET=ti.targets.arm.elf.M4
    set CCS_DEVICE="Cortex M.DRA72x"
    )
    ) else if %SOC% == DRA75x (
    set PDK_PARTNO=DRA75x
    set PDK_ECLIPSE_ID=com.ti.pdk.dra7xx
    set RTSC_PLATFORM_NAME=ti.platforms.evmDRA7XX
    if %PROCESSOR% == arm (
    set RTSC_TARGET=gnu.targets.arm.A15F
    set CCS_DEVICE="Cortex A.DRA75x_DRA74x"
    ) else if %PROCESSOR% == m4 (
    set RTSC_TARGET=ti.targets.arm.elf.M4
    set CCS_DEVICE="Cortex M.DRA75x_DRA74x"
    )
    ) else if %SOC% == DRA78x (
    set PDK_PARTNO=DRA78x
    set PDK_ECLIPSE_ID=com.ti.pdk.dra7xx
    set RTSC_PLATFORM_NAME=ti.platforms.evmTDA3XX
    if %PROCESSOR% == m4 (
    set RTSC_TARGET=ti.targets.arm.elf.M4
    set CCS_DEVICE="Cortex M.TDA3x"
    )
    ) else (
    REM Need to exit the batch script cleanly
    set PDK_PARTNO=TCI6634
    set PDK_ECLIPSE_ID=ti.pdk
    set RTSC_PLATFORM_NAME=ti.platforms.simKepler
    )

    REM RTSC Target
    REM - Please ensure that you select this taking into account the
    REM OUTPUT_FORMAT and the RTSC_PLATFORM_NAME
    if %PROCESSOR% == dsp (
    if %ENDIAN% == big (
    set RTSC_TARGET=ti.targets.elf.C66_big_endian
    set CCS_DEVICE="com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice"
    set DSP_TYPE=c66
    ) else (
    if %SOC% == OMAPL137 (
    set RTSC_TARGET=ti.targets.elf.C674
    set CCS_DEVICE="com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"
    set DSP_TYPE=c674x
    ) else if %SOC% == OMAPL138 (
    set RTSC_TARGET=ti.targets.elf.C674
    set CCS_DEVICE="com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"
    set DSP_TYPE=c674x
    ) else (
    set RTSC_TARGET=ti.targets.elf.C66
    set CCS_DEVICE="com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice"
    set DSP_TYPE=c66
    )
    )
    )

    echo PDK_PARTNO : %PDK_PARTNO%
    echo PDK_ECLIPSE_ID : %PDK_ECLIPSE_ID%
    echo RTSC_PLATFORM_NAME : %RTSC_PLATFORM_NAME%
    echo. RTSC_TARGET : %RTSC_TARGET%
    echo. CCS_DEVICE : %CCS_DEVICE%
    REM *****************************************************************************
    REM *****************************************************************************
    REM Please do NOT change anything below this
    REM *****************************************************************************
    REM *****************************************************************************

    REM Set auto create command by default for use with CCSv5 and CCSv6
    set AUTO_CREATE_COMMAND=eclipse\eclipsec -noSplash

    REM If is CCS version 4 then set auto create command for use with CCSv4
    if .%IS_CCS_VERSION_4% == .yes set AUTO_CREATE_COMMAND=eclipse\jre\bin\java -jar %CCS_INSTALL_PATH%\eclipse\startup.jar

    REM Set project for Silicon or QT by default
    set SIMULATOR_SUPPORT_DEFINE=

    REM If simulator support is needed then set the define
    if .%IS_SIMULATOR_SUPPORT_NEEDED% == .yes set SIMULATOR_SUPPORT_DEFINE=-ccs.setCompilerOptions "--define SIMULATOR_SUPPORT"

    REM Goto the PDK Installation Path.

    pushd %PDK_SHORT_NAME%

    echo *****************************************************************************
    echo Detecting all projects in PDK and importing them in the workspace %MY_WORKSPACE%

    set RTSC_PRODUCTS=com.ti.rtsc.SYSBIOS:%BIOS_VERSION%;%PDK_ECLIPSE_ID%:%PDK_VERSION%

    REM check version of the NDK IPC EDMA and UIA
    if exist "%SDK_INSTALL_PATH%/edma3_*" (
    set RTSC_EDMA=;com.ti.sdo.edma3:%EDMA_VERSION%
    )
    if exist "%SDK_INSTALL_PATH%/ipc_*" (
    set RTSC_IPC=;com.ti.rtsc.IPC:%IPC_VERSION%
    )
    if exist "%SDK_INSTALL_PATH%/ndk_*" (
    set RTSC_NDK=;com.ti.rtsc.NDK:%NDK_VERSION%
    )
    if exist "%SDK_INSTALL_PATH%/uia_*" (
    set RTSC_UIA=;com.ti.uia:%UIA_VERSION%
    )

    set RTSC_PRODUCTS="%RTSC_PRODUCTS%%RTSC_EDMA%%RTSC_IPC%%RTSC_NDK%%RTSC_UIA%"

    REM Set MODULE to null string so it picks up all projects of PROCESSOR
    if %MODULE% == all set MODULE=""

    REM Set BOARD to equal the SOC if BOARD is set to "all". All projects for the
    REM SOC will be picked up
    REM Additionally for AM335x, check for AMIC110 board
    set AMIC110BOARD=
    if %BOARD% == all set BOARD=%SOC%
    if %BOARD% == AM335x set AMIC110BOARD="*%MODULE%*AMIC110*arm*roject.txt"

    if %PROCESSOR% == dsp (
    REM Search for all the dsp test Project Files in the PDK.
    for /F %%I IN ('dir /b /s *%MODULE%*%BOARD%*%DSP_TYPE%*roject.txt') do (
    set project_detected = 1

    echo Detected Test Project: %%~nI

    REM Goto each directory where the test project file is located and create the projects.
    pushd %%~dI%%~pI

    REM Execute the command to create the project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.device %CCS_DEVICE% -ccs.endianness %ENDIAN% -ccs.kind executable -ccs.cgtVersion %CGT_VERSION% -rtsc.xdcVersion %XDC_VERSION% -rtsc.enableDspBios -rtsc.biosVersion %BIOS_VERSION% -rtsc.buildProfile "debug" -rtsc.products "%RTSC_PRODUCTS%" -rtsc.platform "%RTSC_PLATFORM_NAME%" -rtsc.target %RTSC_TARGET% -ccs.rts libc.a -ccs.args %%~nI%%~xI %SIMULATOR_SUPPORT_DEFINE% -ccs.overwrite full -ccs.setPostBuildStep "${TI_PDK_INSTALL_DIR}/packages/pdkAppImageCreate.bat ${TI_PDK_INSTALL_DIR}/packages ${CG_TOOL_ROOT} ${PROJECT_LOC}/${ConfigName} ${ProjName} %SOC% %PROCESSOR%"

    echo Copying macros.ini
    copy %MACROS_FILE% %MY_WORKSPACE%\%%~nI\macros.ini

    popd
    )

    )

    REM Setting linker option for arm projects
    if %SOC% == OMAPL137 (
    set LINKER_OPT=""
    set COMPILER=%CGT_VERSION_ARM9%
    ) else if %SOC% == OMAPL138 (
    set LINKER_OPT=""
    set COMPILER=%CGT_VERSION_ARM9%
    ) else (
    set LINKER_OPT="-L${BIOS_CG_ROOT}/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu"
    set COMPILER=%CGT_VERSION_ARM%
    )

    if %PROCESSOR% == arm (
    REM Search for all the arm test Project Files in the PDK.
    for /F %%I IN ('dir /b /s *%MODULE%*%BOARD%*arm*roject.txt %AMIC110BOARD%') do (
    set project_detected = 1

    echo Detected Test Project: %%~nI

    REM Goto each directory where the test project file is located and create the projects.
    pushd %%~dI%%~pI

    REM Expands the projectname variable which is used for identifying the baremetal and SYSBIOS project.
    set projectName=%%~nI
    REM Run CCS create command specific to baremetal and OS projects
    if "x!projectName:nonOS=!" == "x!projectName!" (
    REM Execute the command to create the OS project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.cmd "" -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.setLinkerOptions %LINKER_OPT% -ccs.device %CCS_DEVICE% -ccs.endianness %ENDIAN% -ccs.kind executable -ccs.cgtVersion "%COMPILER%" -rtsc.xdcVersion %XDC_VERSION% -rtsc.enableDspBios -rtsc.biosVersion %BIOS_VERSION% -rtsc.buildProfile "debug" -rtsc.products "%RTSC_PRODUCTS%" -rtsc.platform "%RTSC_PLATFORM_NAME%" -rtsc.target %RTSC_TARGET% -ccs.rts libc.a libgcc.a libuart.a libm.a libnosys.a -ccs.args %%~nI%%~xI %SIMULATOR_SUPPORT_DEFINE% -ccs.overwrite full -ccs.setPostBuildStep "${TI_PDK_INSTALL_DIR}/packages/pdkAppImageCreate.bat ${TI_PDK_INSTALL_DIR}/packages ${CG_TOOL_ROOT} ${PROJECT_LOC}/${ConfigName} ${ProjName} %SOC% %PROCESSOR%"
    ) else (
    REM Execute the command to create the baremetal project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.cmd "" -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.device %CCS_DEVICE% -ccs.endianness %ENDIAN% -ccs.outputType executable -ccs.cgtVersion "%CGT_VERSION_ARM%" -ccs.args %%~nI%%~xI -ccs.overwrite full -ccs.setPostBuildStep "$(CG_TOOL_ROOT)/bin/arm-none-eabi-objcopy -O binary "%%~nI.out" "%%~nI.bin"

    REM Deletes the startup file generated defaultly by CCS tool
    del /q %MY_WORKSPACE%\%%~nI\*.S
    )

    echo Copying macro.ini
    copy %MACROS_FILE% %MY_WORKSPACE%\%%~nI\macros.ini

    popd
    )
    )

    if %PROCESSOR% == m4 (
    REM Search for all the m4 test Project Files in the PDK.
    for /F %%I IN ('dir /b /s *%MODULE%*%BOARD%*m4*roject.txt') do (
    set project_detected = 1

    echo Detected Test Project: %%~nI

    REM Goto each directory where the test project file is located and create the projects.
    pushd %%~dI%%~pI

    REM Execute the command to create the project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.cmd "" -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.device %CCS_DEVICE% -ccs.endianness %ENDIAN% -ccs.kind executable -ccs.cgtVersion "%CGT_M4_VERSION%" -rtsc.xdcVersion %XDC_VERSION% -rtsc.enableDspBios -rtsc.biosVersion %BIOS_VERSION% -rtsc.buildProfile "debug" -rtsc.products "%RTSC_PRODUCTS%" -rtsc.platform "%RTSC_PLATFORM_NAME%" -rtsc.target %RTSC_TARGET% -ccs.rts libc.a libgcc.a libuart.a libm.a libnosys.a -ccs.args %%~nI%%~xI %SIMULATOR_SUPPORT_DEFINE% -ccs.overwrite full -ccs.setPostBuildStep "${TI_PDK_INSTALL_DIR}/packages/pdkAppImageCreate.bat ${TI_PDK_INSTALL_DIR}/packages ${CG_TOOL_ROOT} ${PROJECT_LOC}/${ConfigName} ${ProjName} %SOC% %PROCESSOR%"

    echo Copying macro.ini
    copy %MACROS_FILE% %MY_WORKSPACE%\%%~nI\macros.ini

    popd
    )
    )
    popd

    if not defined project_detected (
    echo No projects detected
    )

    echo Project generation complete
    echo *****************************************************************************

    :ENDSCRIPT
    endlocal

    ----------------------------------

    ----------------------------------

    @REM ******************************************************************************
    @REM * FILE PURPOSE: Environment Setup for building PDK
    @REM ******************************************************************************
    @REM * FILE NAME: pdksetupenv.bat
    @REM *
    @REM * DESCRIPTION:
    @REM * Configures and sets up the Build Environment for PDK.
    @REM *
    @REM * The batch file expects an optional argument:PDK_INSTALL_PATH: Location
    @REM * of the PDK package. If the argument is not specified the batch file
    @REM * assumes that the PDK is installed in the same location where the batch
    @REM * file is located and is being executed.
    @REM *
    @REM * USAGE:
    @REM * pdksetupenv.bat "C:\ti\pdk_<device>_<version>\packages"
    @REM * --- OR ---
    @REM * pdksetupenv.bat
    @REM *
    @REM * Copyright (C) 2012-2017, Texas Instruments, Inc.
    @REM *****************************************************************************
    @echo off
    @REM *******************************************************************************
    @REM ********************** GET PARAMETERS PASSED THROUGH ARGUMENT ***************
    @REM *******************************************************************************
    @REM Parameter Validation: Check if the argument was passed to the batch file and
    @REM if so we use that else we default to the working directory where the batch
    @REM file was invoked from

    set tempVar=%1
    if defined tempVar (
    set PDK_INSTALL_PATH=%~fs1
    ) else (
    set PDK_INSTALL_PATH=%~sdp0
    )

    set PDK_INSTALL_PATH=%PDK_INSTALL_PATH:\=/%

    @rem Remove trailing space from PDK_INSTALL_PATH. Otherwise, makefiles will append a
    @rem second slash when creating object paths and will cause compilation error in case
    @rem an application includes xdc/cfg/global.h
    if %PDK_INSTALL_PATH:~-1% == / (
    set PDK_INSTALL_PATH=%PDK_INSTALL_PATH:~0,-1%
    )

    @rem PDK_INSTALL_PATH workaround for compilation of board library.
    @rem A drive letter in PDK_INSTALL_PATH will cause make of board library to fail because
    @rem make mis-interprets drive letters as rules. Thus remove the drive letter which
    @rem means the 'make' or 'xdc' shall run from same drive letter as PDK when building PDK
    @rem or SDK components.
    set PDK_INSTALL_PATH=%PDK_INSTALL_PATH:~2%

    if not defined SDK_INSTALL_PATH (
    set SDK_INSTALL_PATH=C:/ti
    )

    if not defined TOOLS_INSTALL_PATH (
    set TOOLS_INSTALL_PATH=C:/ti
    )

    @REM *******************************************************************************
    @REM ********************** CHECK REQUIRED ENVIRONMENT DEFINES BEGIN ***************
    @REM *******************************************************************************

    @REM Version of CG-Tools
    set CGT_VERSION=8.1.3

    @REM Cross compiler prefix
    set GCC_CROSS_TOOL_PREFIX=arm-none-eabi-

    @REM Version of GCC
    set GCC_VERSION=%GCC_CROSS_TOOL_PREFIX%4_9-2015q3

    @REM Version of GCC for ARM A15
    set GCC_VERSION_ARM_A15=%GCC_CROSS_TOOL_PREFIX%4_9-2015q3

    @REM Version of GCC for ARM A8
    set GCC_VERSION_ARM_A8=%GCC_CROSS_TOOL_PREFIX%4_9-2015q3

    @REM Version of GCC for ARM A9
    set GCC_VERSION_ARM_A9=%GCC_CROSS_TOOL_PREFIX%4_9-2015q3

    @REM Version of CG-ARM-Tools
    set CGT_ARM_VERSION=16.9.2.LTS

    @REM Version of CG-PRU-Tools for PRUICSS
    set CGT_PRU_VERSION=2.1.5

    @REM Version of EVE CG-Tools
    set CGT_ARP32_VERSION=1.0.8

    @REM Version of FPULIB for ARM
    set GCC_VERSION_FPULIB=4.9.3

    @REM Version of XDC
    set XDC_VERSION=3_50_02_20_core

    @REM Version of BIOS
    set BIOS_VERSION=6_51_00_15

    @REM Version of IPC
    set IPC_VERSION=3_46_00_02

    @REM EDMA3 Version
    set EDMA_VERSION=2_12_04_28

    @REM Version of the NDK
    set NDK_VERSION=2_25_01_11

    @REM Version of the IMGLIB
    set IMGLIB_VERSION=c674x_3_1_1_0

    @REM Version of the DSPLIB
    set DSPLIB_VERSION=c674x_3_4_0_0

    @REM Version of the MATHLIB
    set MATHLIB_VERSION=c674x_3_1_1_0

    @REM Version of the UIA previouse=2_00_06_52
    set UIA_VERSION=2_20_00_02

    if not defined C6X_GEN_INSTALL_PATH (
    set C6X_GEN_INSTALL_PATH=%SDK_INSTALL_PATH%/ti-cgt-c6000_%CGT_VERSION%
    )
    set C6X_GEN_INSTALL_PATH=%C6X_GEN_INSTALL_PATH:\=/%

    if not defined TOOLCHAIN_PATH_GCC (
    set TOOLCHAIN_PATH_GCC=%SDK_INSTALL_PATH%/gcc-%GCC_VERSION%
    )
    set TOOLCHAIN_PATH_GCC=%TOOLCHAIN_PATH_GCC:\=/%

    if not defined TOOLCHAIN_PATH_A15 (
    set TOOLCHAIN_PATH_A15=%SDK_INSTALL_PATH%/gcc-%GCC_VERSION_ARM_A15%
    )
    set TOOLCHAIN_PATH_A15=%TOOLCHAIN_PATH_A15:\=/%

    if not defined TOOLCHAIN_PATH_A8 (
    set TOOLCHAIN_PATH_A8=%SDK_INSTALL_PATH%/gcc-%GCC_VERSION_ARM_A8%
    )
    set TOOLCHAIN_PATH_A8=%TOOLCHAIN_PATH_A8:\=/%

    if not defined TOOLCHAIN_PATH_A9 (
    set TOOLCHAIN_PATH_A9=%SDK_INSTALL_PATH%/gcc-%GCC_VERSION_ARM_A9%
    )
    set TOOLCHAIN_PATH_A9=%TOOLCHAIN_PATH_A9:\=/%

    if not defined TOOLCHAIN_PATH_M4 (
    set TOOLCHAIN_PATH_M4=%SDK_INSTALL_PATH%/ti-cgt-arm_%CGT_ARM_VERSION%
    )
    set TOOLCHAIN_PATH_M4=%TOOLCHAIN_PATH_M4:\=/%

    if not defined TOOLCHAIN_PATH_Arm9 (
    set TOOLCHAIN_PATH_Arm9=%SDK_INSTALL_PATH%/ti-cgt-arm_%CGT_ARM_VERSION%
    )
    set TOOLCHAIN_PATH_M4=%TOOLCHAIN_PATH_Arm9:\=/%

    if not defined TOOLCHAIN_PATH_EVE (
    set TOOLCHAIN_PATH_EVE=%SDK_INSTALL_PATH%/arp32_%CGT_ARP32_VERSION%
    )
    set TOOLCHAIN_PATH_EVE=%TOOLCHAIN_PATH_EVE:\=/%

    if not defined CL_PRU_INSTALL_PATH (
    set CL_PRU_INSTALL_PATH=%SDK_INSTALL_PATH%/ti-cgt-pru_%CGT_PRU_VERSION%
    )
    set CL_PRU_INSTALL_PATH=%CL_PRU_INSTALL_PATH:\=/%

    if not defined FPULIB_PATH (
    set FPULIB_PATH=%TOOLCHAIN_PATH_A9%/lib/gcc/arm-none-eabi/%GCC_VERSION_FPULIB%/fpu
    )
    set FPULIB_PATH=%FPULIB_PATH:\=/%

    if not defined CROSS_TOOL_PRFX (
    set CROSS_TOOL_PRFX=%GCC_CROSS_TOOL_PREFIX%
    )
    set CROSS_TOOL_PRFX=%CROSS_TOOL_PRFX:\=/%

    if not defined XDC_INSTALL_PATH (
    set XDC_INSTALL_PATH=%SDK_INSTALL_PATH%/xdctools_%XDC_VERSION%
    )
    set XDC_INSTALL_PATH=%XDC_INSTALL_PATH:\=/%

    if not defined UTILS_INSTALL_DIR (
    set UTILS_INSTALL_DIR=%XDC_INSTALL_PATH%/bin
    )
    set UTILS_INSTALL_DIR=%UTILS_INSTALL_DIR:\=/%

    if not defined BIOS_INSTALL_PATH (
    set BIOS_INSTALL_PATH=%SDK_INSTALL_PATH%/bios_%BIOS_VERSION%
    )
    set BIOS_INSTALL_PATH=%BIOS_INSTALL_PATH:\=/%

    if not defined IPC_INSTALL_PATH (
    set IPC_INSTALL_PATH=%SDK_INSTALL_PATH%/ipc_%IPC_VERSION%
    )
    set IPC_INSTALL_PATH=%IPC_INSTALL_PATH:\=/%

    if not defined EDMA3LLD_BIOS6_INSTALLDIR (
    set EDMA3LLD_BIOS6_INSTALLDIR=%SDK_INSTALL_PATH%/edma3_lld_%EDMA_VERSION%
    )
    set EDMA3LLD_BIOS6_INSTALLDIR=%EDMA3LLD_BIOS6_INSTALLDIR:\=/%

    if not defined NDK_INSTALL_PATH (
    set NDK_INSTALL_PATH=%SDK_INSTALL_PATH%/ndk_%NDK_VERSION%
    )
    set NDK_INSTALL_PATH=%NDK_INSTALL_PATH:\=/%

    if not defined IMGLIB_INSTALL_PATH (
    set IMGLIB_INSTALL_PATH=%SDK_INSTALL_PATH%/imglib_%IMGLIB_VERSION%
    )
    set IMGLIB_INSTALL_PATH=%IMGLIB_INSTALL_PATH:\=/%

    if not defined DSPLIB_INSTALL_PATH (
    set DSPLIB_INSTALL_PATH=%SDK_INSTALL_PATH%/dsplib_%DSPLIB_VERSION%
    )
    set DSPLIB_INSTALL_PATH=%DSPLIB_INSTALL_PATH:\=/%

    if not defined MATHLIB_INSTALL_PATH (
    set MATHLIB_INSTALL_PATH=%SDK_INSTALL_PATH%/mathlib_%MATHLIB_VERSION%
    )
    set MATHLIB_INSTALL_PATH=%MATHLIB_INSTALL_PATH:\=/%

    if not defined UIA_INSTALL_PATH (
    set UIA_INSTALL_PATH=%SDK_INSTALL_PATH%/uia_%UIA_VERSION%
    )
    set UIA_INSTALL_PATH=%UIA_INSTALL_PATH:\=/%

    if not defined CG_XML_BIN_INSTALL_PATH (
    @echo Optional parameter not configured : CG_XML_BIN_INSTALL_PATH
    @echo REQUIRED for xdc release build
    @echo Example: set CG_XML_BIN_INSTALL_PATH=C:/ti/cg_xml/bin
    )

    if not defined DOXYGEN_INSTALL_PATH (
    @echo Optional parameter not configured : DOXYGEN_INSTALL_PATH
    @echo REQUIRED for xdc release build
    @echo Example: set DOXYGEN_INSTALL_PATH=C:/ti/Doxygen/doxygen/1.5.1-p1/bin
    )

    @REM *******************************************************************************
    @REM ********************** CHECK REQUIRED ENVIRONMENT DEFINES END ***************
    @REM *******************************************************************************

    @REM *******************************************************************************
    @REM *************************** OPTIONAL ENVIRONMENT DEFINES **********************
    @REM *************************** NOT REQUIRED FOR BUILDING THE PDK *****************
    @REM *******************************************************************************
    @REM STATIC_ANALYZE_PATH: Environment Variable for tool to do STATIC Analysis
    @REM of the code
    @REM
    @REM DOXYGEN_INSTALL_PATH: DOXYGEN Version 1.7.3 [Only needed for generating Doxygen]
    @REM
    @REM HTML_HELP_WORKSHOP_INSTALL_PATH: HTML Help compiler.[Only needed for generating Doxygen]
    @REM
    @REM PDSP_CGEN_INSTALL_PATH: PDSP CGEN TOOLS [Only needed for PA firmware]
    @REM *******************************************************************************
    @REM *******************************************************************************
    @REM *******************************************************************************

    @REM PDK PARTNO
    if not defined PARTNO set PARTNO=AM
    if not defined SOC_FAMILY set SOC_FAMILY=AM

    @REM Platforms supported by the PDK
    if not defined LIMIT_SOCS set LIMIT_SOCS=omapl138
    if not defined LIMIT_BOARDS set LIMIT_BOARDS=lcdkOMAPL138

    set CGTOOLS=%C6X_GEN_INSTALL_PATH%

    @REM *******************************************************************************
    @REM ** Convert paths to short name and to UNIX STYLE PATH for XDC build **
    @REM *******************************************************************************
    set PATH=%PATH%;%XDC_INSTALL_PATH%\packages\xdc\services\io\release

    @REM *******************************************************************************
    @REM This file requires path2dos.exe utility available from XDC tools. If path2dos.exe
    @REM is not available in the build environment then short names for paths SHOULD be
    @REM provided to environment variables e.g. C:\PROGRA~1\TEXASI~1\PDK_TC~4\packages.
    @REM In Windows environment, "dir /x" and "dir /-n" displays the short names generated
    @REM for non-8dot3 file and directory names.
    @REM *******************************************************************************

    @REM for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%PDK_INSTALL_PATH%"') do set PDK_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%C6X_GEN_INSTALL_PATH%"') do set C6X_GEN_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_GCC%"') do set TOOLCHAIN_PATH_GCC=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_A15%"') do set TOOLCHAIN_PATH_A15=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_A8%"') do set TOOLCHAIN_PATH_A8=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_A9%"') do set TOOLCHAIN_PATH_A9=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_M4%"') do set TOOLCHAIN_PATH_M4=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_Arm9%"') do set TOOLCHAIN_PATH_Arm9=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%TOOLCHAIN_PATH_EVE%"') do set TOOLCHAIN_PATH_EVE=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%CL_PRU_INSTALL_PATH%"') do set CL_PRU_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%UTILS_INSTALL_DIR%"') do set UTILS_INSTALL_DIR=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%FPULIB_PATH%"') do set FPULIB_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%XDC_INSTALL_PATH%"') do set XDC_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%BIOS_INSTALL_PATH%"') do set BIOS_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%IPC_INSTALL_PATH%"') do set IPC_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%EDMA3LLD_BIOS6_INSTALLDIR%"') do set EDMA3LLD_BIOS6_INSTALLDIR=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%NDK_INSTALL_PATH%"') do set NDK_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%IMGLIB_INSTALL_PATH%"') do set IMGLIB_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%DSPLIB_INSTALL_PATH%"') do set DSPLIB_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%MATHLIB_INSTALL_PATH%"') do set MATHLIB_INSTALL_PATH=%%a
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%UIA_INSTALL_PATH%"') do set UIA_INSTALL_PATH=%%a
    if defined CG_XML_BIN_INSTALL_PATH (
    for /f "tokens=1* delims=" %%a in ('cmd /q/c path2dos "%CG_XML_BIN_INSTALL_PATH%"') do set CG_XML_BIN_INSTALL_PATH=%%a
    )

    set XDCCGROOT=%C6X_GEN_INSTALL_PATH%

    echo **************************************************************************
    echo Environment Configuration:
    echo LIMIT_SOCS : %LIMIT_SOCS%
    echo LIMIT_BOARDS : %LIMIT_BOARDS%
    echo PDK_INSTALL_PATH : %PDK_INSTALL_PATH%
    echo C6X_GEN_INSTALL_PATH : %C6X_GEN_INSTALL_PATH%
    echo TOOLCHAIN_PATH_GCC : %TOOLCHAIN_PATH_GCC%
    echo TOOLCHAIN_PATH_A15 : %TOOLCHAIN_PATH_A15%
    echo TOOLCHAIN_PATH_A8 : %TOOLCHAIN_PATH_A8%
    echo TOOLCHAIN_PATH_A9 : %TOOLCHAIN_PATH_A9%
    echo TOOLCHAIN_PATH_M4 : %TOOLCHAIN_PATH_M4%
    echo TOOLCHAIN_PATH_Arm9 : %TOOLCHAIN_PATH_Arm9%
    echo TOOLCHAIN_PATH_EVE : %TOOLCHAIN_PATH_EVE%
    echo CL_PRU_INSTALL_PATH : %CL_PRU_INSTALL_PATH%
    echo UTILS_INSTALL_DIR : %UTILS_INSTALL_DIR%
    echo FPULIB_PATH : %FPULIB_PATH%
    echo CROSS_TOOL_PRFX : %CROSS_TOOL_PRFX%
    echo XDC_INSTALL_PATH : %XDC_INSTALL_PATH%
    echo BIOS_INSTALL_PATH : %BIOS_INSTALL_PATH%
    echo IPC_INSTALL_PATH : %IPC_INSTALL_PATH%
    echo EDMA3LLD_BIOS6_INSTALLDIR : %EDMA3LLD_BIOS6_INSTALLDIR%
    echo NDK_INSTALL_PATH : %NDK_INSTALL_PATH%
    echo IMGLIB_INSTALL_PATH : %IMGLIB_INSTALL_PATH%
    echo DSPLIB_INSTALL_PATH : %DSPLIB_INSTALL_PATH%
    echo MATHLIB_INSTALL_PATH : %MATHLIB_INSTALL_PATH%
    echo UIA_INSTALL_PATH : %UIA_INSTALL_PATH%
    if defined CG_XML_BIN_INSTALL_PATH (
    echo CG_XML_BIN_INSTALL_PATH : %CG_XML_BIN_INSTALL_PATH%
    )

    @echo off
    @REM *******************************************************************************
    @REM *************************** XDC PATH Configuration ****************************
    @REM *******************************************************************************

    @REM Ensure that all the components inside PDK are a part of the XDC Path; such
    @REM that one component can use another.
    set XDCPATH=../../..;%XDC_INSTALL_PATH%/packages;%PDK_INSTALL_PATH%/.
    set XDCPATH=%XDCPATH%;%EDMA3LLD_BIOS6_INSTALLDIR%/packages;%BIOS_INSTALL_PATH%/packages;%IPC_INSTALL_PATH%/packages;%NDK_INSTALL_PATH%/packages;%UIA_INSTALL_PATH%/packages

    @REM *******************************************************************************
    @REM ************************** Build Tools Configuration **************************
    @REM *******************************************************************************

    @REM Windows Path
    set PATH=C:/Windows/System32

    @REM Compiler Tools:
    set PATH=%PATH%;%C6X_GEN_INSTALL_PATH%/bin

    @REM XDC Tools location:
    set PATH=%PATH%;%XDC_INSTALL_PATH%;%XDC_INSTALL_PATH%\bin;%XDC_INSTALL_PATH%\packages\xdc\services\io\release

    @REM CG-XML Package:
    if defined CG_XML_BIN_INSTALL_PATH set PATH=%PATH%;%CG_XML_BIN_INSTALL_PATH%

    @REM Third Party Tools: Doxygen
    if defined DOXYGEN_INSTALL_PATH set PATH=%PATH%;%DOXYGEN_INSTALL_PATH%

    @REM Third Party Tools: HTML Help compiler.
    if defined HTML_HELP_WORKSHOP_INSTALL_PATH set PATH=%PATH%;%HTML_HELP_WORKSHOP_INSTALL_PATH%;

    @REM Third Party Tools: Coverity
    if defined STATIC_ANALYZE_PATH set PATH=%PATH%;%STATIC_ANALYZE_PATH%\bin

    @REM Set the Title Window appropiately.
    Title Processor-SDK RTOS Build Environment

    if not defined PDK_PATH (
    @REM SDK level makefile did not invoke PDK level makefile

    @echo **************************************************************************
    @echo Changing to short name to support directory names containing spaces
    @echo current directory: %PDK_INSTALL_PATH%

    cd %PDK_INSTALL_PATH%
    @echo PDK BUILD ENVIRONMENT CONFIGURED
    @echo **************************************************************************
    )

    -----

    BR,

    Itzhak

  • Itzhak,
    the error you are getting now is in the part of PDK that I am not familiar with, I'll have to ask someone else to look at it.
  • Thanks Sasha,

    Attached are couple of results images after running the pdkProjectCreate.bat that may help.

    BTW it seems there is several "" params in the installation program eclipsec.exe that might be a problem.

    BR

    Itzhak