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.

RTOS/EVMK2H: Example Project has error "Invalid SOC"

Part Number: EVMK2H
Other Parts Discussed in Thread: SYSBIOS, CCSTUDIO

Tool/software: TI-RTOS

Hi.

I set my PC  these TI tools, Code Composer Studio V7 and Processor SDK 4.0.4 for EVMK2H.

I try to build example project presented TI.  build is pretty good. but  It has an error "Invalid SOC"

I check binaries, I find out new bin file, build is success I think.

Why the Error occurred?? and can I fix it? I attached console log file.

Regards.

Shin.


**** Build of configuration Debug for project PCIE_K2H_wSoCFile_C66BiosExampleProject ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
gmake[1]: Entering directory 'C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug'
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/edma3_lld_2_12_02_26/packages;C:/ti/ipc_3_44_00_00/packages;C:/ti/bios_6_46_01_38/packages;C:/ti/pdk_k2hk_4_0_4/packages;C:/ti/ndk_2_25_00_09/packages;C:/ti/uia_2_00_06_52/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6636K2H -r debug -c "C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring pcie_sample_wSoCFile.xe66 from package/cfg/pcie_sample_wSoCFile_pe66.cfg ...
generating custom ti.sysbios library makefile ...
Inside EDMA3 Drv Sample getLibs
will link with ti.sdo.edma3.drv.sample:lib/tci6636k2h-evm/66/debug/edma3_lld_drv_sample.ae66
Linking with library ti.csl:./lib/k2h/c66/release/ti.csl.ae66
Linking with library ti.drv.pcie:./lib/c66/release/ti.drv.pcie.profiling.ae66
Linking with library ti.utils.profiling:./lib/c66/release/ti.utils.profiling.ae66
Inside EDMA3 Drv getLibs
will link with ti.sdo.edma3.drv:lib/66/debug/edma3_lld_drv.ae66
Inside EDMA3 RM getLibs
will link with ti.sdo.edma3.rm:lib/tci6636k2h-evm/66/debug/edma3_lld_rm.ae66
Starting build of library sources ...
making C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios'
Build of libraries done.
cle66 package/cfg/pcie_sample_wSoCFile_pe66.c ...
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg'
' '
gmake[1]: Leaving directory 'C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug'
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject" --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry --preproc_with_compile --preproc_dependency="pcie_soc.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c"
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c'
' '
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject" --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry --preproc_with_compile --preproc_dependency="commonEDMA.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c"
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c'
' '
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject" --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry --preproc_with_compile --preproc_dependency="PCIeEDMAselector.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c"
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c'
' '
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject" --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry --preproc_with_compile --preproc_dependency="PCIeDMA.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c"
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c'
' '
'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject" --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry --preproc_with_compile --preproc_dependency="pcie_sample.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c"
'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c'
' '
'Building target: PCIE_K2H_wSoCFile_C66BiosExampleProject.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 -g --define=DEVICE_K2H --diag_wrap=off --diag_warning=225 --display_error_number --exit_hook=ti_utils_exit --exit_parm=address --entry_parm=address --entry_hook=ti_utils_entry -z -m"PCIE_K2H_wSoCFile_C66BiosExampleProject.map" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="PCIE_K2H_wSoCFile_C66BiosExampleProject_linkInfo.xml" --rom_model -o "PCIE_K2H_wSoCFile_C66BiosExampleProject.out" "./PCIeDMA.obj" "./PCIeEDMAselector.obj" "./commonEDMA.obj" "./pcie_sample.obj" "./pcie_soc.obj" -l"configPkg/linker.cmd" -llibc.a
<Linking>
'Finished building target: PCIE_K2H_wSoCFile_C66BiosExampleProject.out'
' '
C:/ti/pdk_k2hk_4_0_4/packages/pdkAppImageCreate.bat C:/ti/pdk_k2hk_4_0_4/packages C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3 C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug PCIE_K2H_wSoCFile_C66BiosExampleProject K2H dsp

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set PDK_PATH=C:/ti/pdk_k2hk_4_0_4/packages

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set CG_TOOL_PATH=C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set APP_PATH=C:/Users/keunsu/workspace_v7/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set APP_NAME=PCIE_K2H_wSoCFile_C66BiosExampleProject

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set SOC=K2H

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set PROCESSOR=dsp

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM437x (goto SOC_AM3_AM4 )

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM335x (goto SOC_AM3_AM4 )

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM572x (goto SOC_AM57XX )

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM571x (goto SOC_AM57XX )

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>else (

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>echo ERROR: Invalid SOC
ERROR: Invalid SOC

C:\Users\keunsu\workspace_v7\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>goto ENDSCRIPT
' '
'else' is not recognized as an internal or external command,
operable program or batch file.

**** Build Finished ****

  • Hi,

    Try the following sequence:
    x0155517@mms:~$ cd ti/pdk_k2hk_4_0_3/packages/
    x0155517@mms:~/ti/pdk_k2hk_4_0_3/packages$ source pdksetupenv.sh
    x0155517@mms:~/ti/pdk_k2hk_4_0_3/packages$ ./pdkProjectCreate.sh K2H all little pcie dsp

    This should geenrate PCIE example project folder in ~/ti/pdk_k2hk_4_0_3/packages/MyExampleProjects. Then open CCS, import that PCIE project & build it.

    The command ./pdkProjectCreate.sh K2H all little pcie dsp is translated as:
    pdkProjectCreate.sh [soc] [board] [endian] [module] [processor]

    Best Regards,
    Yordan
  • Hi

    I use windows machine. I tried to execute sequence below

    ti\pdk_k2hk_4_0_4\packages\pdkSetup.bat

    ti\pdk_k2hk_4_0_4\packages\pdkProjectCreate.bat K2H all little all dsp

    It is make all project file.

    and I load pcie project file in CCSv7. 

    "Invalid SOC" message is still remained.

    I am sorry but your recommend is not helpful for me.

    Thanks.

  • Hi,

    This is strange.  I validated this on my side and it works.. See the log from my build: https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/PCI_5F00_build_5F00_log

    I suggest you check your entire build setup. See if you've correctly imported your SDK sources into CCS, verify that your environment variables & paths are correct. 

    Best Regards, 
    Yordan

  • HI

    Can you try to windows machine?

    I think "pdkAppImageCreate.bat" script is something wrong.

    Regards
  • Hi,

    I don't have windows installed on my pc.
    However, I checked the .bat file & it's usage indeed has a slight difference:
    pdkProjectCreate.bat [soc] [board] [endian] [module] [processor] [pdkDir]

    pdkDir - THIS FILE LOCATION / "C:\ti\pdk_<soc>_<version>\packages" ==> meaning the pdkProjectCreate.bat location.

    You need to specify the pdk directory at the end. So try running:
    ti\pdk_k2hk_4_0_4\packages\pdkProjectCreate.bat K2H all little all dsp "C:\ti\pdk_k2hk_4_0_4\packages"

    In the above command I assume that ti\pdk_k2hk_4_0_4 is installed in C:\.

    Best Regards,
    Yordan
  • I am guessing that you are using the Processor SDK RTOS 3.2 which includes pdk_k2hk_4_0_3. Please note that the version of the SDK that you are using is supported only using CCSv6.1.3 and not CCSv7. This specified in our release notes here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Release_Notes

    We are moving to CCS v7 in the upcoming Processor SDK RTOS release. I am not sure if this is the root cause of your issue but we recommend that you download the recommended version of CCS as specified in the Release notes and select the following options as described here so that you have the correct packages installed with CCS.


    processors.wiki.ti.com/.../Processor_SDK_RTOS_Getting_Started_Guide

    As you can see from YOrdan`s logs. He is using CCSv6 so he may not have run into this issue. If you still want to use CCSv7 then you may need to modify the pdkProjectcreate script accordingly to generate the projects correctly.

    Regards,
    Rahul

  • Hi~

    Thanks for your recommand.

    I try to install pdk_k2hk_4_0_4 and ccsv6.1.3, I face another error.

    " !ERROR: Unknown RTSC product-type ID 'com.ti.sdo.edma3'!"

    What is mean the message ?

    Regards.

    Thanks



    C:\ti\pdk_k2hk_4_0_4\packages>pdkProjectCreate.bat K2H all little pcie dsp "C:\ti\pdk_k2hk_4_0_4\packages"
    =========================================================================
    Configuration:
    SOC : K2H
    BOARD : all
    ENDIAN : little
    MODULE : pcie
    PROCESSOR : dsp
    PDK_SHORT_NAME : "C:\ti\pdk_k2hk_4_0_4\packages"
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : TCI6636
    PDK_ECLIPSE_ID : com.ti.pdk.k2hk
    RTSC_PLATFORM_NAME : ti.platforms.evmTCI6636K2H
    RTSC_TARGET : ti.targets.elf.C66
    CCS_DEVICE : "com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace "C:\ti\pdk_k2hk_4_0_4\packages"\MyExampleProjects
    Detected Test Project: PCIE_K2H_wSoCFile_C66BiosExampleProject

    --------------------------------------------------------------------------------
    Creating project 'PCIE_K2H_wSoCFile_C66BiosExampleProject'...

    !WARNING: No XDCtools, equivalent to the specified version '3.32.1.22', are available - defaulting to '3.31.3.43_core'.
    !ERROR: Unknown RTSC product-type ID 'com.ti.sdo.edma3'!
    NOTE: Refer to the following list of available RTSC product-type IDs (the display-names in square brackets are for reference only):


    Copying macros.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: PCIE_K2H_wSoCLib_C66BiosExampleProject

    --------------------------------------------------------------------------------
    Creating project 'PCIE_K2H_wSoCLib_C66BiosExampleProject'...

    !WARNING: No XDCtools, equivalent to the specified version '3.32.1.22', are available - defaulting to '3.31.3.43_core'.
    !ERROR: Unknown RTSC product-type ID 'com.ti.sdo.edma3'!
    NOTE: Refer to the following list of available RTSC product-type IDs (the display-names in square brackets are for reference only):


    Copying macros.ini
    The system cannot find the path specified.
    0 file(s) copied.
    No projects detected
    Project generation complete
    *****************************************************************************
    C:\ti\pdk_k2hk_4_0_4\packages>
  • Hi

    I update CCSv6.1.3 and removed edma3 error. but Invalid SOC error still remain.

    I install CCSv6.1.3 and Processor SDK 3.02 including PDK_k2hk_4_0_4. and I update ccsv6 and import pcie example given PDK_k2hk_4_0_4.

    I build the project. and result as same as CCS v7.

    Is combination that CCS v 6.1.3 and Processor SDK 3.02 stable version your recommended ??

    I attached error message in CCSv6 below, please check this message and effort to fix this error as soon as possible.

    Thanks.



    **** Build of configuration Debug for project PCIE_K2H_wSoCFile_C66BiosExampleProject ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/edma3_lld_2_12_02_26/packages;C:/ti/ipc_3_44_00_00/packages;C:/ti/bios_6_46_01_38/packages;C:/ti/pdk_k2hk_4_0_4/packages;C:/ti/ndk_2_25_00_09/packages;C:/ti/uia_2_00_06_52/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI6636K2H -r debug -c "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring pcie_sample_wSoCFile.xe66 from package/cfg/pcie_sample_wSoCFile_pe66.cfg ...
    generating custom ti.sysbios library makefile ...
    Inside EDMA3 Drv Sample getLibs
    will link with ti.sdo.edma3.drv.sample:lib/tci6636k2h-evm/66/debug/edma3_lld_drv_sample.ae66
    Linking with library ti.csl:./lib/k2h/c66/release/ti.csl.ae66
    Linking with library ti.drv.pcie:./lib/c66/release/ti.drv.pcie.profiling.ae66
    Linking with library ti.utils.profiling:./lib/c66/release/ti.utils.profiling.ae66
    Inside EDMA3 Drv getLibs
    will link with ti.sdo.edma3.drv:lib/66/debug/edma3_lld_drv.ae66
    Inside EDMA3 RM getLibs
    will link with ti.sdo.edma3.rm:lib/tci6636k2h-evm/66/debug/edma3_lld_rm.ae66
    Starting build of library sources ...
    making C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios/sysbios.ae66 ...
    gmake[1]: Entering directory `C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios'
    cle66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
    asme66 C:/ti/bios_6_46_01_38/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
    are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj c62_TaskSupport_asm.obj ti_tls_get_tp.obj timer64_Timer_asm.obj ...
    gmake[1]: Leaving directory `C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/src/sysbios'
    Build of libraries done.
    cle66 package/cfg/pcie_sample_wSoCFile_pe66.c ...
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/k2h/c66/bios/pcie_sample_wSoCFile.cfg'
    ' '
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address --preproc_with_compile --preproc_dependency="PCIeDMA.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c"
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeDMA.c'
    ' '
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address --preproc_with_compile --preproc_dependency="PCIeEDMAselector.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c"
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/PCIeEDMAselector.c'
    ' '
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address --preproc_with_compile --preproc_dependency="commonEDMA.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c"
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/EDMA/commonEDMA.c'
    ' '
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address --preproc_with_compile --preproc_dependency="pcie_sample.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c"
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src/pcie_sample.c'
    ' '
    'Building file: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_k2hk_4_0_4/packages" --include_path="C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/example/sample/src" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address --preproc_with_compile --preproc_dependency="pcie_soc.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c"
    'Finished building: C:/ti/pdk_k2hk_4_0_4/packages/ti/drv/pcie/soc/k2h/src/pcie_soc.c'
    ' '
    'Building target: PCIE_K2H_wSoCFile_C66BiosExampleProject.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/bin/cl6x" -mv6600 -g --define=DEVICE_K2H --diag_warning=225 --diag_wrap=off --display_error_number --entry_hook=ti_utils_entry --entry_parm=address --exit_hook=ti_utils_exit --exit_parm=address -z -m"PCIE_K2H_wSoCFile_C66BiosExampleProject.map" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="PCIE_K2H_wSoCFile_C66BiosExampleProject_linkInfo.xml" --rom_model -o "PCIE_K2H_wSoCFile_C66BiosExampleProject.out" "./PCIeDMA.obj" "./PCIeEDMAselector.obj" "./commonEDMA.obj" "./pcie_sample.obj" "./pcie_soc.obj" -l"configPkg/linker.cmd" -llibc.a
    <Linking>
    'Finished building target: PCIE_K2H_wSoCFile_C66BiosExampleProject.out'
    ' '
    C:/ti/pdk_k2hk_4_0_4/packages/pdkAppImageCreate.bat C:/ti/pdk_k2hk_4_0_4/packages C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0 C:/Users/keunsu/workspace_v6_1_3/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug PCIE_K2H_wSoCFile_C66BiosExampleProject K2H dsp

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set PDK_PATH=C:/ti/pdk_k2hk_4_0_4/packages

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set CG_TOOL_PATH=C:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set APP_PATH=C:/Users/keunsu/workspace_v6_1_3/PCIE_K2H_wSoCFile_C66BiosExampleProject/Debug

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set APP_NAME=PCIE_K2H_wSoCFile_C66BiosExampleProject

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set SOC=K2H

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>set PROCESSOR=dsp

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM437x (goto SOC_AM3_AM4 )

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM335x (goto SOC_AM3_AM4 )

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM572x (goto SOC_AM57XX )

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>if K2H == AM571x (goto SOC_AM57XX )

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>else (

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>echo ERROR: Invalid SOC
    ERROR: Invalid SOC

    C:\Users\keunsu\workspace_v6_1_3\PCIE_K2H_wSoCFile_C66BiosExampleProject\Debug>goto ENDSCRIPT
    ' '
    'else' is not recognized as an internal or external command,
    operable program or batch file.

    **** Build Finished ****
  • Yes, PRocessor SDK 3.02 and CCSv6.1.3 release is stable and looks like you are able to build the PCIe example correctly.

    The Invalid SOC issue is occurring from the pdkAppImageCreate.bat that is invoked by the post build step in the project. This seems to be a bug as that script should only be invoked on SOCs that support booting from SD card. Please ignore that error and load and run the PCIE_K2H_wSoCFile_C66BiosExampleProject.out on the C66x core on the K2H platform.

    Regards,
    Rahul