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.

Can't build ex01_universal_dma_copy_dsp

Guru 10685 points

Other Parts Discussed in Thread: SYSBIOS

Hi, I'm trying to build the example ex01_universal_dma_copy_dsp which I found in framework components. Unfortunately it crashes while building it:

ralph@desktop:~/testing/dsp_codec/ex01_universal_dma_copy_dsp$ make
make -C  codec
make[1]: Entering directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
make PROFILE=debug lib/debug/universal_dma_ti_ecpy.ae674
make[2]: Entering directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
rm -f obj/debug/universal_dma_ti.oe674
bin/cl6x /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti.c ...
/home/ralph/depot/codegen-7_3_1/bin/cl6x -qq -pdsw225 -pden -pds=195 --abi=eabi  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -eo.oe674 -g -D_DEBUG_=1 --symdebug:dwarf -I/home/ralph/depot/xdctools-3_23_03_53/packages -I/home/ralph/depot/framework_components-3_23_00_13/packages -I/home/ralph/depot/xdais-7_23_00_06/packages -I/home/ralph/depot/codegen-7_3_1/include -fr=./obj/debug -fc /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti.c
rm -f obj/debug/universal_dma_ti_ires.oe674
bin/cl6x /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti_ires.c ...
/home/ralph/depot/codegen-7_3_1/bin/cl6x -qq -pdsw225 -pden -pds=195 --abi=eabi  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -eo.oe674 -g -D_DEBUG_=1 --symdebug:dwarf -I/home/ralph/depot/xdctools-3_23_03_53/packages -I/home/ralph/depot/framework_components-3_23_00_13/packages -I/home/ralph/depot/xdais-7_23_00_06/packages -I/home/ralph/depot/codegen-7_3_1/include -fr=./obj/debug -fc /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti_ires.c
rm -f lib/debug/universal_dma_ti_ecpy.ae674
OBJS = obj/debug/universal_dma_ti.oe674 obj/debug/universal_dma_ti_ires.oe674
archiving obj/debug/universal_dma_ti.oe674 obj/debug/universal_dma_ti_ires.oe674 into lib/debug/universal_dma_ti_ecpy.ae674 ...
/home/ralph/depot/codegen-7_3_1/bin/ar6x rq lib/debug/universal_dma_ti_ecpy.ae674 obj/debug/universal_dma_ti.oe674 obj/debug/universal_dma_ti_ires.oe674
make[2]: Leaving directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
make PROFILE=release lib/release/universal_dma_ti_ecpy.ae674
make[2]: Entering directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
rm -f obj/release/universal_dma_ti.oe674
bin/cl6x /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti.c ...
/home/ralph/depot/codegen-7_3_1/bin/cl6x -qq -pdsw225 -pden -pds=195 --abi=eabi  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -eo.oe674 -O2 -I/home/ralph/depot/xdctools-3_23_03_53/packages -I/home/ralph/depot/framework_components-3_23_00_13/packages -I/home/ralph/depot/xdais-7_23_00_06/packages -I/home/ralph/depot/codegen-7_3_1/include -fr=./obj/release -fc /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti.c
rm -f obj/release/universal_dma_ti_ires.oe674
bin/cl6x /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti_ires.c ...
/home/ralph/depot/codegen-7_3_1/bin/cl6x -qq -pdsw225 -pden -pds=195 --abi=eabi  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -eo.oe674 -O2 -I/home/ralph/depot/xdctools-3_23_03_53/packages -I/home/ralph/depot/framework_components-3_23_00_13/packages -I/home/ralph/depot/xdais-7_23_00_06/packages -I/home/ralph/depot/codegen-7_3_1/include -fr=./obj/release -fc /home/ralph/depot/framework_components-3_23_00_13/examples/ti/sdo/fc/ires/examples/codecs/universal_dma/universal_dma_ti_ires.c
rm -f lib/release/universal_dma_ti_ecpy.ae674
OBJS = obj/release/universal_dma_ti.oe674 obj/release/universal_dma_ti_ires.oe674
archiving obj/release/universal_dma_ti.oe674 obj/release/universal_dma_ti_ires.oe674 into lib/release/universal_dma_ti_ecpy.ae674 ...
/home/ralph/depot/codegen-7_3_1/bin/ar6x rq lib/release/universal_dma_ti_ecpy.ae674 obj/release/universal_dma_ti.oe674 obj/release/universal_dma_ti_ires.oe674
make[2]: Leaving directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
make[1]: Leaving directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/codec'
make -C  app
make[1]: Entering directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app'
XDCPATH="/home/ralph/depot/xdctools-3_23_03_53/packages;/home/ralph/depot/framework_components-3_23_00_13/packages;/home/ralph/depot/sysbios-6_33_06_50/packages;/home/ralph/depot/xdais-7_23_00_06/packages;/home/ralph/depot/osal-1_23_00_04/packages;/home/ralph/depot/edma3lld-02_11_05_02/packages;/home/ralph/depot/framework_components-3_23_00_13/examples;" /home/ralph/depot/xdctools-3_23_03_53/xs xdc.tools.configuro -c /home/ralph/depot/codegen-7_3_1 -o local -t ti.targets.elf.C674 \
        -p ti.platforms.evmTI816X -b ./_config.bld -r debug local.cfg
making package.mak (because of package.bld) ...
generating interfaces for package local (because package/package.xdc.inc is older than package.xdc) ...
configuring local.xe674 from package/cfg/local_pe674.cfg ...
cle674 package/cfg/local_pe674.c ...
make bin/debug/universal_dma_example_dsp.xe674
make[2]: Entering directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app'
#
# Making bin/debug/main_BIOS.oe674 ...
/home/ralph/depot/codegen-7_3_1/bin/cl6x -c -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -I../codec/ -mv6740 --abi=eabi -I"/home/ralph/depot/xdctools-3_23_03_53/packages" -I"/home/ralph/depot/framework_components-3_23_00_13/packages" -I"/home/ralph/depot/sysbios-6_33_06_50/packages" -I"/home/ralph/depot/xdais-7_23_00_06/packages" -I"/home/ralph/depot/osal-1_23_00_04/packages" -I"/home/ralph/depot/edma3lld-02_11_05_02/packages" -I"/home/ralph/depot/framework_components-3_23_00_13/examples" -I"/home/ralph/depot/xdctools-3_23_03_53/packages" -I"/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app/local/.." -I/home/ralph/depot/codegen-7_3_1/include -Dxdc_target_types__="ti/targets/elf/std.h" -Dxdc_target_name__=C674 -Dxdc_cfg__header__="/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app/local/package/cfg/local_pe674.h" -g -D_DEBUG_=1 --symdebug:dwarf   -eo.oe674 -fr=bin/debug main_BIOS.c

INTERNAL ERROR: /home/ralph/depot/codegen-7_3_1/bin/acpia6x experienced a segmentation fault while
                processing

This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.


>> Compilation failure
make[2]: *** [bin/debug/main_BIOS.oe674] Error 1
make[2]: Leaving directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ralph/testing/dsp_codec/ex01_universal_dma_copy_dsp/app'
make: *** [app] Error 2

Please can someone help me? Here are my package versions as set up in products.mak:

FC_INSTALL_DIR = $(DEPOT)/framework_components-3_23_00_13
OSAL_INSTALL_DIR        = $(DEPOT)/osal-1_23_00_04
XDAIS_INSTALL_DIR       = $(DEPOT)/xdais-7_23_00_06
CMEM_INSTALL_DIR        = $(DEPOT)/linuxutils-3_23_00_01
EDMA3_LLD_INSTALL_DIR   = $(DEPOT)/edma3lld-02_11_05_02
XDC_INSTALL_DIR         = $(DEPOT)/xdctools-3_23_03_53
BIOS_INSTALL_DIR        = $(DEPOT)/sysbios-6_33_06_50

CODECS_REPO = $(FC_INSTALL_DIR)/examples

ti.targets.elf.C674 = $(DEPOT)/codegen-7_3_1

Ralph

  • The first thing I would do is check the version of Codegen tools recommended in the Framework Components release notes. If that's different from the ones you are using, that might cause an issue like you seeing above.

    Could you confirm the correct version and try with that first ?

    Thanks

  • Hi, thanks for the reply. Apparently the compatible software is as follows:

    • XDAIS 7.23.00.06
    • Linux Utils 3.23.00.01
    • OSAL 1.23.00.04
    • XDCtools 3.23.03.53
    • SYS/BIOS 6.33.05.46
    • EDMA3 Resource Manager 02.11.05.02
    • Pre-built binaries were built with the following toolchains:
      • gnu.targets.Linux86 - 4.1.0
      • gnu.targets.arm.GCArmv5T - 4.2.0
      • qnx.targets.arm.Qnx - 4.4.2
      • ti.targets.C64P - 7.0.0
      • ti.targets.C674 - 7.0.0
      • ti.targets.arm.elf.A8F - 4.9.0
      • ti.targets.arm.elf.M3 - 4.9.0
      • ti.targets.arp32.elf.ARP32 - 1.0.0
      • ti.targets.elf.C64P - 7.2.0
      • ti.targets.elf.C64T - 7.2.0
      • ti.targets.elf.C674 - 7.2.0

    Admittedly, I'm using CGtools version 7.3.1 whereas the release says it needs 7.2.0 (I think????) so this should be fine right?

    Ralph

  • Yes. release notes indicate 7.2.0. Any chance you could try with 7.2.0 to see if it fixes the error ?

  • Thanks for the reply. I can't find a copy of CGtools 7.2 on my system or with the current EZSDK so I'm going to forget about this problem and move onto more specific issues with my own code.

  • I've switched back to solving this task: I can confirm that all my packages are the correct versions as specified above except for SYSBIOS which is 6.33.06.50 on my system, though that seems to be only slightly different. I've changed to using CGtools 7.2.0 as requested.

    It now builds by using the older CGtools. Thanks for the tip!

    Ralph

  • That's good news !