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.

Problems with coonect to Ethernet from TMDSEV6678

Other Parts Discussed in Thread: TMS320C6678, MATHLIB

Hi, all

I use DSP TMS320C6678 with Blackhawk XDS560V2 Mezzanine Emulator.

I take example from pdk_C6678_1_1_2_5/packages/ti/drv/pa/example/simpleExample/

On run time I have error:

/* wait for return buffer */
for (j = 0; j < 100; j++) {
CycleDelay (1000);

if (Qmss_getQueueEntryCount (gvPaTxRecycleQ) > 0) {
hd = (Cppi_HostDesc *)(((UInt32)Qmss_queuePop (gvPaTxRecycleQ)) & ~0xf);
/* Reset the buffer lenght and put the descriptor back on the free queue */
hd->buffLen = hd->origBufferLen;
Qmss_queuePush (gvRxBufQ, hd, hd->buffLen, CONFIG_SIZE_DESC, Qmss_Location_TAIL);
break;
}
}

if (j == 100) {
System_printf ("function setMacs: Timeout waiting for return buffer from complete queue to Pa_addMac command\n");
return (-1);
}

What is my faults?

Thank for your replay

Oleg

  • Oleg,

    Please mention the error report. In addition that, you have to refer the Readme.txt file (pdk_C6678_1_1_2_6\packages\ti\drv\pa\example\simpleExample) for how to test this project on the EVM.

    The example demonstrates the use of PA LLD APIs to configure and use the PA sub-system.                                          It further demonstrates the use of CPPI/QMSS LLDs with the PA LLD to send/receive data through the PASS on any given DSP core.

  • Oleg,
    Did you build the project successfully? we can help you,If you give the error message.

  • Rafael,

    Project build successfully, by my opinion,

    **** Build of configuration Debug for project Exam001 ****

    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../paExample.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_23_03_53/xs" --xdcpath="C:/ti/pdk_C6678_1_1_2_5/packages;C:/ti/ndk_2_21_01_38/packages;C:/ti/nsp_1_10_01_06/packages;C:/ti/openem_1_0_0_2/packages;C:/ti/omp_1_01_03_02/packages;C:/ti/bios_6_33_05_46/packages;C:/ti/uia_1_01_00_04/packages;C:/ti/xdais_7_21_01_07/packages;C:/ti/xdais_7_21_01_07/examples;C:/ti/mathlib_c66x_3_0_1_1/packages;C:/ti/mcsdk_2_01_02_05/demos;C:/ti/ccsv5/ccs_base;C:/ti/ipc_1_24_03_32/packages;C:/ti/edma3_lld_02_11_05_02/packages;C:/ti/imglib_c66x_3_1_1_0/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6678_ddr -r debug -c "C:/ti/ccsv5/tools/compiler/c6000_7.3.4" "../paExample.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring paExample.xe66 from package/cfg/paExample_pe66.cfg ...
    Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION: current target 'ti.targets.elf.C66' [1,0,7.3,4] is not compatible with targets used to build the following packages; package ti.csl [in C:/ti/pdk_C6678_1_1_2_5/packages/ti/csl/] was built using 'ti.targets.elf.C66' [1,0,7.4,0]
    ; package ti.drv.pa [in C:/ti/pdk_C6678_1_1_2_5/packages/ti/drv/pa/] was built using 'ti.targets.elf.C66' [1,0,7.4,0]
    ; package ti.drv.qmss [in C:/ti/pdk_C6678_1_1_2_5/packages/ti/drv/qmss/] was built using 'ti.targets.elf.C66' [1,0,7.4,0]
    ; package ti.drv.cppi [in C:/ti/pdk_C6678_1_1_2_5/packages/ti/drv/cppi/] was built using 'ti.targets.elf.C66' [1,0,7.4,0]

    cle66 package/cfg/paExample_pe66.c ...
    'Finished building: ../paExample.cfg'
    ' '
    'Building file: ../classify1_bin.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="classify1_bin.pp" --cmd_file="./configPkg/compiler.opt" "../classify1_bin.c"
    'Finished building: ../classify1_bin.c'
    ' '
    'Building file: ../classify2_bin.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="classify2_bin.pp" --cmd_file="./configPkg/compiler.opt" "../classify2_bin.c"
    'Finished building: ../classify2_bin.c'
    ' '
    'Building file: ../cppi_device.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="cppi_device.pp" --cmd_file="./configPkg/compiler.opt" "../cppi_device.c"
    'Finished building: ../cppi_device.c'
    ' '
    'Building file: ../cpsw_mgmt.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="cpsw_mgmt.pp" --cmd_file="./configPkg/compiler.opt" "../cpsw_mgmt.c"
    'Finished building: ../cpsw_mgmt.c'
    ' '
    'Building file: ../ex1util.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="ex1util.pp" --cmd_file="./configPkg/compiler.opt" "../ex1util.c"
    'Finished building: ../ex1util.c'
    ' '
    'Building file: ../expa.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="expa.pp" --cmd_file="./configPkg/compiler.opt" "../expa.c"
    'Finished building: ../expa.c'
    ' '
    'Building file: ../memory.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="memory.pp" --cmd_file="./configPkg/compiler.opt" "../memory.c"
    'Finished building: ../memory.c'
    ' '
    'Building file: ../osal.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="osal.pp" --cmd_file="./configPkg/compiler.opt" "../osal.c"
    'Finished building: ../osal.c'
    ' '
    'Building file: ../paExample.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="paExample.pp" --cmd_file="./configPkg/compiler.opt" "../paExample.c"
    'Finished building: ../paExample.c'
    ' '
    'Building file: ../pam_bin.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="pam_bin.pp" --cmd_file="./configPkg/compiler.opt" "../pam_bin.c"
    'Finished building: ../pam_bin.c'
    ' '
    'Building file: ../pkttxrx.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="pkttxrx.pp" --cmd_file="./configPkg/compiler.opt" "../pkttxrx.c"
    'Finished building: ../pkttxrx.c'
    ' '
    'Building file: ../qmss_device.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="qmss_device.pp" --cmd_file="./configPkg/compiler.opt" "../qmss_device.c"
    'Finished building: ../qmss_device.c'
    ' '
    'Building file: ../setupqm.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="setupqm.pp" --cmd_file="./configPkg/compiler.opt" "../setupqm.c"
    'Finished building: ../setupqm.c'
    ' '
    'Building target: Exam001.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv6600 -g --display_error_number --diag_warning=225 --abi=eabi -z -m"Exam001.map" --warn_sections --display_error_number -i"C:/ti/ccsv5/tools/compiler/c6000_7.3.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --reread_libs --rom_model -o "Exam001.out" -l"./configPkg/linker.cmd" "./setupqm.obj" "./qmss_device.obj" "./pkttxrx.obj" "./pam_bin.obj" "./paExample.obj" "./osal.obj" "./memory.obj" "./expa.obj" "./ex1util.obj" "./cpsw_mgmt.obj" "./cppi_device.obj" "./classify2_bin.obj" "./classify1_bin.obj" -l"rts6600_elf.lib"
    <Linking>
    'Finished building target: Exam001.out'
    ' '

    **** Build Finished ****

    I can load  Exam001.out file and step by step go on program. After second edition configuration file I don't build 

    project again. I use Launch  Selected Configuration for load

  • Oleg,

    Oleg said:
    After second edition configuration file I don't build project again.


    Did you get error in this case?

  • Excuse me, Pubesh 

    I discussed with Rafael my problem with this example. Rafael teached me as change configuration file for simulator.

    I was making first changed - successfully. I make next change - and I have error  - Can't Initialise Target CPU

    I was very impressed with the discussion, and you mistook him sound. Pardon!

    But I really have problem with this example project

    Oleg

  • Oleg,

    Thanks for your details. However this discussion of thread can helpful for future readers, If you share here so that someone get for the best help. Let us know if you need further support on this.

  • Pubesh,

    Thank you very much! I found my error.  I updated my compiler and found right platform for me.

    Objective works in both modes as simulator and as emullator

    Oleg