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.

EVMK2G: identifier "TaskAip" is undefined, but it is defined in app.cfg!!!

Part Number: EVMK2GX

I try build performance audio example project, but meet below error.

"../framework/systemInit.c", line 276: error #20: identifier "TaskAfp" is undefined
"../framework/systemInit.c", line 277: error #20: identifier "TaskAip" is undefined
"../framework/systemInit.c", line 278: error #20: identifier "TaskAsip" is undefined
"../framework/systemInit.c", line 279: error #20: identifier "TaskAsop" is undefined

but TaskAfp,TaskAip are declare in app.cfg, and exported to app_pe66.h

Why error occured? how to include app_pe66.h and app_pe66.c?

Thanks.

  • Part Number: EVMK2GX

    >> Compilation failure
    framework/subdir_rules.mk:9: recipe for target 'framework/audioStreamInpProcNewIO.obj' failed
    "C:/ti/processor_sdk_rtos_k2g_6_03_00_106/demos/performance-audio/src/pasrc/test_dsp/application/itopo/evmk2g/alpha/i13_a.h", line 63: fatal error #1965: cannot open source file "ddpat_a.h"
    1 catastrophic error detected in the compilation of "../framework/audioStreamInpProcNewIO.c".
    Compilation terminated.
    gmake: *** [framework/audioStreamInpProcNewIO.obj] Error 1

    >> Compilation failure
    framework/itopo/subdir_rules.mk:9: recipe for target 'framework/itopo/patchs.obj' failed
    "../framework/itopo/patchs.c", line 115: fatal error #1965: cannot open source file "car.h"
    1 catastrophic error detected in the compilation of "../framework/itopo/patchs.c".
    Compilation terminated.

  • Hi,

    These errors are likely caused by not setting the environment variables. Please check the K2G performance audio demo guide regarding how to build and run the demo.

    Regards,

    Jianzhong

  • Hi,

    I noticed a duplicate thread on the same topic:

    https://e2e.ti.com/support/processors/f/processors-forum/995576/evmk2gx-identifier-taskaip-is-undefined-but-it-is-defined-in-app-cfg

    FYI: I closed and locked above duplicate thread as the discussions can happen in this thread.

    Thanks

  • Can you study this issue, please answer in straight forward style. !!!!!!!!!!!!!!

  • Hi,

    Sorry if my answer confused you, but please follow the K2G performance audio demo guide (by this link) to build and run the demo. In summary, you'll need to:

    1. install Sed 4.2.1 as described here
    2. setup tools path and version in script processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src\setup_build_env\setup_env.bat (attached for your reference), as described here
    3. Run scripts to setup build environment and then build:

    C:\ti\processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src\setup_build_env>setup_env.bat
    C:\ti\processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src\setup_build_env>setup_paf.bat
    C:\ti\processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src\setup_build_env>cd ..\
    C:\ti\processor_sdk_rtos_k2g_6_03_00_106\demos\performance-audio\src>gmake install

    If you still run into problems, please provide detailed information about how you did the build together with error message, so that we can investigate the problem.

    Regards,

    Jianzhong

  • Sorry I forgot the attachment. Please find it in this post and rename it to setup_env.bat before using it.

    One thing that is missed in the documentation is that C6000 CGT tools version 8.2.2 has to be used. The build scripts have this version hard coded. Please download it from https://www.ti.com/tool/download/C6000-CGT-8-2/8.2.2 and install it to C:\ti.

    setup_env.txt
    @echo off
    :: *************************************************************************
    ::  FILE           : setup_env.bat
    ::  DESCRIPTION    :
    ::
    ::     Setup tools environment.
    ::
    :: *************************************************************************
    
    @echo Executing:  %~fn0
    
    
    :: *************************************************************************
    :: *** Specify install locations
    :: *************************************************************************
    :: Tools location
    set TOOLS_DRIVE=C:
    set TI_TOOLS_DIR=%TOOLS_DRIVE%\ti
    set PA_TOOLS_DIR=%TOOLS_DRIVE%\PA_Tools
    
    :: *************************************************************************
    :: *** Specify tool versions
    :: *************************************************************************
    ::
    :: PRSDK component versions
    ::
    :: XDC tools version for PA
    set XDC_VERSION=3_55_02_22_core
    :: SYSBIOS version for PA
    set BIOS_VERSION=6_76_03_01
    :: UIA version
    set UIA_VERSION=2_30_01_02
    :: IPC version
    set IPC_VERSION=3_50_04_08
    :: PDK version
    set PDK_VERSION=1_0_16
    :: EDMA3 LLD version
    set EDMA3_VERSION=2_12_05_30E
    :: XDAIS version
    set XDAIS_VERSION=7_24_00_04
    :: DSPLIB version
    set DSPLIB_VERSION=3_4_0_4
    :: CCS version
    set CCS_VER=930
    :: SED version
    set SED_VER_DOT=4.2.1
    :: Python version
    set PYTHON_VER=27
    :: Pkzip version
    ::set PKZIP_VER_DOT=9.20
    
    :: Codegen tools
    :: ARM CGT for PA
    set ARM_CGT_VERSION=7-2018-q2-update
    :: C6X CGT for PA
    set C6X_CGT_VER_DOT=8.2.2
    
    :: *************************************************************************
    :: *** Specify install locations
    :: *************************************************************************
    
    ::
    :: PA dependency install locations
    ::
    set CCS_INSTALL_DIR=%TI_TOOLS_DIR%\ccs%CCS_VER%
    set XDC_INSTALL_DIR=%TI_TOOLS_DIR%\xdctools_%XDC_VERSION%
    set BIOS_INSTALL_DIR=%TI_TOOLS_DIR%\bios_%BIOS_VERSION%
    set UIA_INSTALL_DIR=%TI_TOOLS_DIR%\uia_%UIA_VERSION%
    set IPC_INSTALL_DIR=%TI_TOOLS_DIR%\ipc_%IPC_VERSION%
    set PDK_INSTALL_DIR=%TI_TOOLS_DIR%\pdk_k2g_%PDK_VERSION%
    set EDMA3_INSTALL_DIR=%TI_TOOLS_DIR%\edma3_lld_%EDMA3_VERSION%
    set XDAIS_INSTALL_DIR=%TI_TOOLS_DIR%\xdais_%XDAIS_VERSION%
    set SED_INSTALL_DIR=%PA_TOOLS_DIR%\GnuWin32
    set PYTHON_INSTALL_DIR=%PA_TOOLS_DIR%\Python%PYTHON_VER%
    set ZIP_INSTALL_DIR=%PA_TOOLS_DIR%
    set CYGWIN_INSTALL_DIR=%TOOLS_DRIVE%\cygwin\bin
    
    ::
    :: Codegen tools install locations
    ::
    set ARM_CGT_INSTALL_DIR=%TI_TOOLS_DIR%\gcc-arm-none-eabi-%ARM_CGT_VERSION%
    set C6X_CGT_INSTALL_DIR=%TI_TOOLS_DIR%\ti-cgt-c6000_%C6X_CGT_VER_DOT%
    
    ::
    :: PA install location
    ::
    if "%PAROOT%" NEQ "" (
        set PAROOT=%PAROOT_DIR%
    ) else (
        set PAROOT=%~dp0..
    )
    
    :: 
    :: PAF install locations
    :: 
    set CG_TOOLS_a15=%ARM_CGT_INSTALL_DIR%
    set CG_TOOLS_c66x=%C6X_CGT_INSTALL_DIR%
    set BIOSROOT=%TI_TOOLS_DIR%\bios_%BIOS_VERSION%
    set XDCROOT=%TI_TOOLS_DIR%\xdctools_%XDC_VERSION%
    set IPCROOT=%TI_TOOLS_DIR%\ipc_%IPC_VERSION%
    set PDKROOT=%TI_TOOLS_DIR%\pdk_k2g_%PDK_VERSION%
    set EDMA3LLDROOT=%TI_TOOLS_DIR%\edma3_lld_%EDMA3_VERSION%
    set XDAISROOT=%TI_TOOLS_DIR%\xdais_%XDAIS_VERSION%
    set DSPLIBROOT=%TI_TOOLS_DIR%\dsplib_c66x_%DSPLIB_VERSION%
    set ROOTDIR=%PAROOT%\pasrc\paf
    
    rem @echo #######################################################################
    rem @echo ##  All Required Tools Installed
    rem @echo #######################################################################
    rem @echo.
    
    :: *************************************************************************
    :: ** Set the PATH
    :: *************************************************************************
    for %%i in (git.exe) do set GIT_PATH=%TOOLS_DRIVE%%%~sp$PATH:i
    set PATH=%SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\Wbem
    set PATH=%XDC_INSTALL_DIR%;%PATH%
    set PATH=%XDC_INSTALL_DIR%\jre\bin;%PATH%
    set PATH=%PATH%;%CCS_INSTALL_DIR%\eclipse
    set PATH=%PATH%;%SED_INSTALL_DIR%\bin
    set PATH=%PATH%;%PYTHON_INSTALL_DIR%;%PYTHON_INSTALL_DIR%\Scripts
    set PATH=%PATH%;%GIT_PATH%
    set PATH=%PATH%;%ZIP_INSTALL_DIR%\7-Zip
    set GIT_PATH=
    
    
    :: *************************************************************************
    :: ** Create XDC environment variables
    :: *************************************************************************
    set xdc=%XDC_INSTALL_DIR%\xdc.exe $*
    ::set XDCPATH=%CCS_INSTALL_DIR%/ccsv%CCS_VER%/packages
    ::set XDCPATH=%XDCPATH%;%XDC_INSTALL_DIR%/packages
    set XDCPATH=%XDC_INSTALL_DIR%/packages
    
    
    :: *************************************************************************
    :: ** Clean Up
    :: *************************************************************************
    set XDC_VERSION=
    set XDC_VERSION_DH=
    set XDC_VERSION_DTSX=
    set BIOS_VERSION=
    set BIOS_VERSION_DH=
    set BIOS_VERSION_DTSX=
    set IPC_VERSION=
    set XDAIS_VERSION=
    set CCS_VER=
    set CCS_VER_CGT=
    set SED_VER_DOT=
    set PYTHON_VER=
    ::set PKZIP_VER_DOT=
    set C6X_CGT_VER_DOT=
    set ARM_CGT_VERSION=
    set C6X_CGT_VER_DOT_PARMA=
    
    
    :: *************************************************************************
    :: ** Show the build environment
    :: *************************************************************************
    @echo.
    @echo #######################################################################
    @echo ##  Build Environment Variables (Start)
    @echo #######################################################################
    @set
    @echo #######################################################################
    @echo ##  Build Environment Variables (Stop)
    @echo #######################################################################
    @echo.
    
    
    :end
    

    Hope this is helpful and you can build the demo successfully.

  • I try build performance audio example project, but meet below error.

    "../framework/systemInit.c", line 276: error #20: identifier "TaskAfp" is undefined
    "../framework/systemInit.c", line 277: error #20: identifier "TaskAip" is undefined
    "../framework/systemInit.c", line 278: error #20: identifier "TaskAsip" is undefined
    "../framework/systemInit.c", line 279: error #20: identifier "TaskAsop" is undefined

    but TaskAfp,TaskAip are declare in app.cfg, and exported to app_pe66.h

    Why error occured? how to include app_pe66.h and app_pe66.c?

    Thanks.

    Why I cannot find these symbol?  it is declared in cfg file.

  • I'm not sure how you did the build. I was able to build the demo according to what I described earlier. Can you try that?