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.

TMS320C6678: PCIe Boot: pciedemo.c compilation failure pcieDdrInit_6678.h: No such file or directory

Expert 1800 points
Part Number: TMS320C6678

Hi,

I have a C6678  TMDSEVM6678L REV 3B EVM.  I have plugged into PCI bridge which is connected to host CPU.

The host CPU is able to detect the C6678 device.  I would like to run pciedemo.  But I could not compile the PCIe demo example code.

The demo code compilation fails:

/home/rams/ti_6678/pdk_c667x_2_0_4/packages/ti/boot/examples/pcie/linux_host_loader/pciedemo.c:90:49: fatal error: pcieDdrInit_6678.h: No such file or directory
#include "pcieDdrInit_6678.h" /* DDR init */
^
compilation terminated.

Please let me know how can I CROSS COMPILE PCIedemo code so that I can run on different host CPU

Thanks

Rams

  • Hi,

    Do you have the header (pcieDdrInit_6678.h) in /home/rams/ti_6678/pdk_c667x_2_0_4/packages/ti/boot/examples/pcie/linux_host_loader/ folder?

    Also when you execute pdksetupenv.sh or pdksetupenv.bat, verify that the scripts source the correct environment paths. Check if all pats start with your custom directory /home/rams/ti_6678/..

    Best Regards,
    Yordan
  • Hello,

    I could not find any of the headers in TI installations which are included in pciedemo.c

    #include "pcieDdrInit_6678.h" /* DDR init */
    #include "pcieBootCode_6678.h"

    I ran the pdksetupenv.sh. Please find below the output of pdksetupenv.sh
    rams@rams-pc2:~/ti_6678/pdk_c667x_2_0_4/packages$ ./pdksetupenv.sh
    Optional parameter not configured : CG_XML_BIN_INSTALL_PATH
    REQUIRED for xdc release build
    Example: export CG_XML_BIN_INSTALL_PATH="~/ti/cg_xml/bin"
    Optional parameter not configured : DOXYGEN_INSTALL_PATH
    REQUIRED for xdc release build
    Example: export DOXYGEN_INSTALL_PATH="~/ti/Doxygen/doxygen/1.5.1-p1/bin"
    **************************************************************************
    Environment Configuration:
    LIMIT_SOCS : c6678
    LIMIT_BOARDS : evmC6678
    PDK_INSTALL_PATH : /home/rams/ti_6678/pdk_c667x_2_0_4/packages
    C6X_GEN_INSTALL_PATH : /home/rams/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0
    TOOLCHAIN_PATH_A15 : /home/rams/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3
    TOOLCHAIN_PATH_A8 : /home/rams/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3
    TOOLCHAIN_PATH_A9 : /home/rams/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3
    TOOLCHAIN_PATH_M4 : /home/rams/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS
    FPULIB_PATH : /home/rams/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/lib/gcc/arm-none-eabi/4.9.3/fpu
    CROSS_TOOL_PRFX : arm-none-eabi-
    XDC_INSTALL_PATH : /home/rams/ti/xdctools_3_32_01_22_core
    BIOS_INSTALL_PATH : /home/rams/ti/bios_6_46_01_38
    IPC_INSTALL_PATH : /home/rams/ti/ipc_3_44_00_00
    EDMA3LLD_BIOS6_INSTALLDIR : /home/rams/ti/edma3_lld_2_12_02_26
    NDK_INSTALL_PATH : /home/rams/ti/ndk_2_25_00_09
    IMGLIB_INSTALL_PATH : /home/rams/ti/imglib_c66x_3_1_1_0
    UIA_INSTALL_PATH : /home/rams/ti/uia_2_00_06_52
    PDK BUILD ENVIRONMENT CONFIGURED

    Regards
    Rams
  • Hello,
    I tried installing different Processor SDK releases as well as MCSDK releases. I could not see pcieDdrInit_6678.h files. I am now blocked.
    Could you please attach necessary files to build PCIedemo and ddrinit for pcie boot?
    Thanks
    Rams
  • Hi,

    I've notified the PCIe experts. Feedback will be posted here.

    Best Regards,
    Yordan
  • Hi,

    Those header files are not distributed together with the installer package, but they are generated by script. See attached readme.pdf for details. README.pdfThis readme file was missing from the package, we will add it.

    Regards, Eric

  • Hi Eric,

    Thanks for sharing the document.  It was very useful info.

    Thanks

    Rams