EVMK2G: C:\ti\pdk_k2g_1_0_16\packages\ti\drv\mcasp\example\evmK2G\c66\bios

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

Can you tell me how to use these 3 example

I create one CCS C66x project and added all source/include/cfg file to project as below picture

Then I connect micro phone and audio to audio jacks ( J32 & J33 ) as below

Then I run mcasp1 app, but I cannot here any voice, What is wrong, Can you help me check my CCS project and hw setup

Thanks.

  • This is incorrect way to setup the MCASP example project. You need to setup the PDK build environment and use pdkProjectCreate script to generate the CCS project as described in the software developers guide.

    https://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/rtos/index_overview.html#pdk-example-and-test-project-creation

    Please setup the SDK and CCS environment and then call into the pdkProjectCreate.bat using the following options

    pdkProjectCreate.bat K2G evmK2G little mcasp all dsp

    Regards,

    Rahul

    PS: Follow the getting started guide to setup CCS and SDK environment.

    CCS and Processor SDK setup : https://software-dl.ti.com/processor-sdk-rtos/esd/docs/06_03_00_106/rtos/index_how_to_guides.html#setup-ccs-for-evm-and-processor-sdk-rtos
  • I am very curious, why TI do not offer ccs project file in the install package, always request customer run batch script create ccs project .

    Below is the log, after I run your command.  Tell me where is my created CCS project

    C:\ti\pdk_k2g_1_0_16\packages>pdksetupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
    SDK_INSTALL_PATH : C:/ti
    PDK_INSTALL_PATH : C:/ti/pdk_k2g_1_0_16/packages
    GMAKE_INSTALL_PATH : C:/ti/xdctools_3_55_02_22_core
    PDK_SOC : k2g
    PDK_VERSION : 1_0_16
    RULES_MAKE : C:/ti/pdk_k2g_1_0_16/packages/ti/build/Rules.make
    ***************************************************

    C:\ti\pdk_k2g_1_0_16\packages>

    pdkProjectCreate.bat K2G evmK2G little mcasp all dsp


    C:\ti\pdk_k2g_1_0_16\packages>pdkProjectCreate.bat K2G evmK2G little mcasp all dsp
    =========================================================================
    Configuration:
    SOC : K2G
    BOARD : evmK2G
    ENDIAN : little
    MODULE : mcasp
    PROJECT_TYPE : all
    PROCESSOR : dsp
    PDK_SHORT_NAME : C:\ti\PDK_K2~1\packages\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : 66AK2G02
    PDK_ECLIPSE_ID : com.ti.pdk.k2g
    RTSC_PLATFORM_NAME : ti.platforms.evmTCI66AK2G02
    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_K2~1\packages\\MyExampleProjects
    Detected Test Project: MCASP_AudioEQ_evmK2G_c66ExampleProject
    The system cannot find the path specified.
    Copying macros.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCASP_Audio_evmK2G_c66ExampleProject
    The system cannot find the path specified.
    Copying macros.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Detected Test Project: MCASP_DeviceLoopback_evmK2G_c66ExampleProject
    The system cannot find the path specified.
    Copying macros.ini
    The system cannot find the path specified.
    0 file(s) copied.
    Project generation complete
    *****************************************************************************

    C:\ti\pdk_k2g_1_0_16\packages>

    ##############################################################################################################

    By the way, since  MCASP_Audio_evmK2G_c66ExampleProject.txt file declared used C source files, compile and link flag, 

    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/audioSample_io.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/audioSample_main.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/aic3106_if.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/aic31.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/src/codec_if.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmK2G/src/audio_evmInit.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmK2G/src/mcasp_cfg.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/soc/k2g/mcasp_soc.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/i2c/soc/k2g/I2C_soc.c"
    -ccs.linkFile "${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmK2G/c66/bios/AudioLoopback.cfg"
    -ccs.setCompilerOptions "-mv6600 --abi=eabi -g --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP --display_error_number --diag_warning=225 -I${PDK_INSTALL_PATH} -I${PDK_INSTALL_PATH}/ti/drv/mcasp/example/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp/example/evmK2G/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp/include -I${PDK_INSTALL_PATH}/ti/drv/mcasp -I${PDK_INSTALL_PATH}/ti/board" -rtsc.enableRtsc
    -ccs.setLinkerOptions "--reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model "

    I manually add C files, cflag to project IT should work as well!!!!!! 

    Finally, we target is by this weekend , we want confirm J32/J33 working OK and evaluate AIC32 codec!

    Thanks.

     

  • I do not like spend more time on how to setup project, I just want confirm the example work OK! AIC work ok.

    Thanks.

  • The SDK requires customers to run the pdkProjectcreate script because users as it allows users to setup the SDK and CCS in any custom location and specify it to the script. The script will pick this location from your environment setup and generate the CCS project that will build out of the box.

    CCS now has the option to use project specs which specifies the envrionment in a text file, this will allow our SDKs to provide CCS projects. We are migrating to this approach for newer device but for current generation devices, this will continue to be the model we support.

    As far as your log is concerned, it appears that you are using a different version of CCS  (based on your other E2E post) compared to what we have specified in the release notes. Releaese notes for this device specifies CCS 9.3 and you are using CCS 10.2. If you choose to use a different version of CCS then you will need to update the pdkProjectCreate script. Locate the following line and update it to point to your install of CCS.

    set CCS_INSTALL_PATH=C:/ti/ccs1020/ccs

    Let us know if this resolves your issue.

    IF you don`t want to spend time to figure out the project, you can run the prebuilt binary that I am providing here from the C66x core to confirm audio functionality on the EVM

    MCASP_Audio_evmK2G_c66ExampleProject.zip

  • Can you give me CCS project , current I use CCS1020

  • Below is build log


    **** Build of configuration Debug for project MCASP_Audio_evmK2G_c66ExampleProject ****

    "C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/c66/bios/AudioLoopback.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_76_03_01/packages;C:/ti/pdk_k2g_1_0_16/packages;C:/ti/edma3_lld_2_12_05_30E/packages;C:/ti/ipc_3_50_04_08/packages;C:/ti/ndk_3_61_01_01/packages;C:/ti/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmTCI66AK2G02 -r debug -c "C:/ti/ti-cgt-c6000_8.3.2" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/c66/bios/AudioLoopback.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring AudioLoopback.xe66 from package/cfg/AudioLoopback_pe66.cfg ...
    SoC Type is k2g
    SoC Type is k2g
    generating custom ti.sysbios library makefile ...
    Linking with library ti.board:./lib/evmK2G/c66/release/ti.board.ae66
    Linking with library ti.drv.uart:./lib/k2g/c66/release/ti.drv.uart.ae66
    Linking with library ti.drv.i2c:./lib/k2g/c66/release/ti.drv.i2c.ae66
    Linking with library ti.drv.mcasp:./lib/k2g/c66/release/ti.drv.mcasp.ae66
    Linking with library ti.osal:./lib/tirtos/k2g/c66/release/ti.osal.ae66
    Inside EDMA3 Drv Sample getLibs
    will link with ti.sdo.edma3.drv.sample:lib/tci66ak2g02-evm/66/debug/edma3_lld_drv_sample.ae66
    Linking with library ti.csl:./lib/k2g/c66/release/ti.csl.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/tci66ak2g02-evm/66/debug/edma3_lld_rm.ae66
    Starting build of library sources ...
    making C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/c66/bios/src/sysbios/sysbios.ae66 ...
    Build of libraries done.
    cle66 package/cfg/AudioLoopback_pe66.c ...
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/c66/bios/AudioLoopback.cfg"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/i2c/soc/k2g/I2C_soc.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="I2C_soc.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/i2c/soc/k2g/I2C_soc.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/i2c/soc/k2g/I2C_soc.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic3106_if.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="aic3106_if.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic3106_if.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic3106_if.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_main.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audioSample_main.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_main.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_main.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/audio_evmInit.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audio_evmInit.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/audio_evmInit.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/audio_evmInit.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_io.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="audioSample_io.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_io.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/audioSample_io.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic31.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="aic31.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic31.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/aic31.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/codec_if.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="codec_if.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/codec_if.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/src/codec_if.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/mcasp_cfg.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_cfg.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/mcasp_cfg.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/src/mcasp_cfg.c"

    Building file: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/soc/k2g/mcasp_soc.c"
    Invoking: C6000 Compiler
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject" --include_path="C:/ti/pdk_k2g_1_0_16/packages" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/example/evmK2G/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/include" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp" --include_path="C:/ti/pdk_k2g_1_0_16/packages/ti/board" --include_path="C:/ti/ti-cgt-c6000_8.3.2/include" --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="mcasp_soc.d_raw" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/soc/k2g/mcasp_soc.c"
    Finished building: "C:/ti/pdk_k2g_1_0_16/packages/ti/drv/mcasp/soc/k2g/mcasp_soc.c"

    Building target: "MCASP_Audio_evmK2G_c66ExampleProject.out"
    Invoking: C6000 Linker
    "C:/ti/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --abi=eabi --define=USE_BIOS --define=SOC_K2G --define=DSP_MODE --define=AIC_CODEC --define=MCASP_MASTER --define=BUILD_K2G_DSP -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"MCASP_Audio_evmK2G_c66ExampleProject.map" -i"C:/ti/ti-cgt-c6000_8.3.2/lib" -i"C:/ti/ti-cgt-c6000_8.3.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="MCASP_Audio_evmK2G_c66ExampleProject_linkInfo.xml" --rom_model -o "MCASP_Audio_evmK2G_c66ExampleProject.out" "./I2C_soc.obj" "./aic31.obj" "./aic3106_if.obj" "./audioSample_io.obj" "./audioSample_main.obj" "./audio_evmInit.obj" "./codec_if.obj" "./mcasp_cfg.obj" "./mcasp_soc.obj" -l"configPkg/linker.cmd" -llibc.a
    <Linking>
    warning #10247-D: creating output section "L2SRAM" without a SECTIONS specification
    Finished building target: "MCASP_Audio_evmK2G_c66ExampleProject.out"

    C:/ti/pdk_k2g_1_0_16/packages/pdkAppImageCreate.bat C:/ti/pdk_k2g_1_0_16/packages C:/ti/ti-cgt-c6000_8.3.2 C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject/Debug MCASP_Audio_evmK2G_c66ExampleProject K2G dsp
    Number of Input Files 1
    Error opening input image file! C:/ti/pdk_k2g_1_0_16/packages/MyExampleProjects/MCASP_Audio_evmK2G_c66ExampleProject/Debug/MCASP_Audio_evmK2G_c66ExampleProject.out.rprc

    **** Build Finished ****

    Below is serial port log,

    Still have NO any voice output, please help debug it.

    Thanks.

    ******** Audio Loopback demo ********
    Send audio signals in to the EVM's audio-in port and hear the same audio in the audio-out port
    NUM_BUFS=2
    PRIME_COUNT=2

    EDMA driver initialization successful.
    Initialization complete. priming about to begin

  • ******** Device Loopback demo ********
    The test will automatically send 98 frames and does a ramp check

    Num frames sent =(98 + 2)
    NUM_BUFS=2
    PRIME_COUNT=2

    EDMA driver initialization successful.
    Initialization complete. priming about to begin

    Total frames sent: 98
    Total frames received: 98

    ******************* Transmit Watch dog stats ****************
    ------------ Error stats --------------
    ***** isClkFailErr : 0
    ***** isDMAErr : 0
    ***** isSyncErr : 0
    ***** retVal : 0
    ***** isRcvOvrRunOrTxUndRunErr : 0


    ******************* Receive Watch dog stats ****************
    ------------ Error stats --------------
    ***** isClkFailErr : 0
    ***** isDMAErr : 0
    ***** isSyncErr : 0
    ***** retVal : 0
    ***** isRcvOvrRunOrTxUndRunErr : 0

    Deleting Rx channel
    Deleting Tx channel
    UnBinding Mcasp
    TEST FAIL: Ramp test never found sync on rx for Serializer=3, timeslot=0

    TEST FAIL: Ramp test never found sync on rx for Serializer=3, timeslot=1

    TEST FAIL: Ramp test never found sync on rx for Serializer=1, timeslot=0

    TEST FAIL: Ramp test never found sync on rx for Serializer=1, timeslot=1

    TEST FAIL:Some tests have failed

  • TO hear audio loop back are you driving audio input through line in port ? Just to eliminate any HW issues, can you probe the clock and the frame sync to see if they are present

  • Device loopback is not the correct test as it does only internal loopback through MCASP pins and doesn`t take analog input through the AIC3106. This is only to sanity test the MCASP internal configuration.

  • Yes, I plug micropjone into inport , see my picture. Do you have K2G board? and rerun this test and verify result?

  • "

    ******** Audio Loopback demo ********
    Send audio signals in to the EVM's audio-in port and hear the same audio in the audio-out port
    NUM_BUFS=2
    PRIME_COUNT=2

    EDMA driver initialization successful.
    Initialization complete. priming about to begin"

  • Any find, do you test this example on your site?