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.

IPC例程编译问题



您好,

我在使用ipc_3_40_01_08中例程DRA7XX_bios_elf/ex01_hello ,在windows 环境CCS6.2中建立了C66XX属性的ccs Project,随后配置并进行编译,总是遇到如下错误:

"E:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.1" "../dsp1/Dsp1.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...
dsp1/subdir_rules.mk:7: recipe for target 'build-735981775' failed
js: "E:/Users/mytia/workspace_v6_2/Myipc/dsp1/Dsp1.cfg", line 42: TypeError: Cannot read property "profile" from null (E:/Users/mytia/workspace_v6_2/Myipc/dsp1/Dsp1.cfg#42)
"./package/cfg/Dsp1_pe66.cfg", line 191
gmake.exe: *** [package/cfg/Dsp1_pe66.xdl] Error 1
js: "E:/ti/xdctools_3_30_04_52_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [build-735981775] Error 1

请问这怎么处理,感谢回答!

  • ipc\examples\DRA7XX_bios_elf\ex01_hello文件夹下有readme,请按照readme中提示的步骤编译。
  • 你好,

    感谢回答。我是按readme编译的。

    这是我的product.mak

    # look for other products.mak file to override local settings
    ifneq (,$(wildcard $(EXBASE)/../products.mak))
    include $(EXBASE)/../products.mak
    else
    ifneq (,$(wildcard $(EXBASE)/../../products.mak))
    include $(EXBASE)/../../products.mak/
    # Define IPC_INSTALL_DIR since not defined in IPC top-level products.mak
    IPC_INSTALL_DIR = $(word 1,$(subst /examples, examples,$(CURDIR)))
    endif
    endif

    # By default, the necessary build variables are found/assigned via
    # ../products.mak or ../../products.mak, included above. If you want to
    # override these variables, or are building this example without
    # ../products.mak or ../../products.mak, uncomment and assign the variables
    # below.

    DEPOT = E:/ti/VISION_SDK_02_05_00_00/ti_components

    #### BIOS-side dependencies ####
    BIOS_INSTALL_DIR = $(DEPOT)/os_tools/bios_6_40_03_39
    IPC_INSTALL_DIR = $(DEPOT)/os_tools/ipc_3_30_00_09
    XDC_INSTALL_DIR = $(DEPOT)/os_tools/windows/xdctools_3_30_04_52_core
    #### BIOS-side toolchains ####
    CCS = E:/ti/ccsv6/tools/compiler
    gnu.targets.arm.A15F = $(CCS)/gcc-arm-none-eabi-4_9-2015q3
    ti.targets.elf.C66 = $(CCS)/c6000_7.4.18
    ti.targets.arm.elf.M4 = $(CCS)/arm_15.12.3.LTS
    ti.targets.arp32.elf.ARP32_far = $(CCS)/arp32_1.0.9

    # Use this goal to print your product variables.
    .show:
    @echo "BIOS_INSTALL_DIR = $(BIOS_INSTALL_DIR)"
    @echo "IPC_INSTALL_DIR = $(IPC_INSTALL_DIR)"
    @echo "XDC_INSTALL_DIR = $(XDC_INSTALL_DIR)"
    @echo "gnu.targets.arm.A15F = $(gnu.targets.arm.A15F)"
    @echo "ti.targets.elf.C66 = $(ti.targets.elf.C66)"
    @echo "ti.targets.arm.elf.M4 = $(ti.targets.arm.elf.M4)"
    @echo "ti.targets.arp32.elf.ARP32_far = $(ti.targets.arp32.elf.ARP32_far)"

    请问是否哪里不正确,为何有错误?

  • #### BIOS-side toolchains ####
    #gnu.targets.arm.A15F = $(DEPOT)/_your_gnu_arm_codegen_install_
    #ti.targets.elf.C66 = $(DEPOT)/_your_ti_dsp_codegen_install_
    #ti.targets.arm.elf.M4 = $(DEPOT)/_your_ti_arm_codegen_install_
    #ti.targets.arp32.elf.ARP32_far = $(DEPOT)/_your_ti_arm_codegen_install_

    你的product.mak标红的地方是CCS?

  • 是CCS啊,指向 compiler
    CCS = E:/ti/ccsv6/tools/compiler
    gnu.targets.arm.A15F = $(CCS)/gcc-arm-none-eabi-4_9-2015q3 ,

    gmake.exe: *** [package/cfg/Dsp1_pe66.xdl] Error 1 请问这个error 应该怎么解决?
  • 嗯,我看的是其它芯片的,可能有点出入。
    通过 [package/cfg/Dsp1_pe66.xdl] Error 1 这个报错可能无法判断,一般可能还是配置上的问题,请问你下的哪个SDK,我试一下看看。
  • 感谢回复,用的就是visionSDK 02050000,例子是DRA7XX_bios下的ex01_hello。

    E:\ti\VISION_SDK_02_05_00_00\ti_components\os_tools\ipc_3_30_00_05_eng\examples\DRA7XX_bios_elf\ex01_hello

  • 这是我修改的,编译了一下没有问题生成了

    ex01_hello/dsp1/bin/debug/hello_dsp1.xe66
    ex01_hello/dsp2/bin/debug/hello_dsp2.xe66

    参考看一下

    https://e2echina.ti.com/cfs-file/__key/communityserver-discussions-components-files/53/0284.products.mak