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.

TI814x: framework_components_3_23_03_17 example ex01_universal_dma_copy_dsp link error

Hi,

I try to use framework_components_3_23_03_17 for Jacinto 5 DSP, and compile the example of ex01_universal_dma_copy_dsp, but it output the link error following:

------------------------------------------

# Making bin/debug/universal_dma_example_dsp.xe674 ...
D:/programs/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/lnk6x -o bin/debug/universal_dma_example_dsp.xe674 -q --compress_dwarf -w -q -u _c_int00 -c -ID:/programs/ti/xdctools_3_24_05_48/packages -ID:/programs/ti/framework_components_3_23_03_17/packages -ID:/programs/ti/bios_6_34_04_22/packages -ID:/programs/ti/xdais_7_23_00_06/packages -ID:/programs/ti/osal_1_23_00_04/packages -ID:/programs/ti/edma3_lld_02_11_05_02/packages -ID:/programs/ti/framework_components_3_23_03_17/examples bin/debug/main_BIOS.oe674 bin/debug/app.oe674 local/linker.cmd local_debug_e674.cmd -l D:/programs/ti/ccsv5/tools/compiler/c6000_7.4.1/lib/rts6740_elf.lib -l"../codec/lib/debug/universal_dma_ti_ecpy.ae674" -l"../codec/local_debug_e674.cmd" -m bin/debug/universal_dma_example_dsp.xe674.map
error: file
"../codec/lib/debug/universal_dma_ti_ecpy.ae674<universal_dma_ti.oe674>"
aligns arrays to 4 bytes, but previous files expect arrays to be aligned to
8 bytes
error: file
"../codec/lib/debug/universal_dma_ti_ecpy.ae674<universal_dma_ti_ires.oe674>
" aligns arrays to 4 bytes, but previous files expect arrays to be aligned
to 8 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_init.oe674>" expects 8-byte alignment of arrays, but
previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_impl.oe674>" expects 8-byte alignment of arrays, but
previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_configure.oe674>" expects 8-byte alignment of arrays,
but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_configure16.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_configure32.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_setfinal.oe674>" expects 8-byte alignment of arrays,
but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directsetfinal.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directconfigure.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directconfigure16.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directconfigure32.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directstartedma.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_start.oe674>" expects 8-byte alignment of arrays, but
previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpycfg.oe674>" expects 8-byte alignment of arrays, but
previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_wait.oe674>" expects 8-byte alignment of arrays, but
previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/ecpy/lib/
debug/ecpy.ae674<ecpy_directwait.oe674>" expects 8-byte alignment of arrays,
but previous files align arrays to 4 bytes
error: file
"D:/programs/ti/framework_components_3_23_03_17/packages/ti/sdo/fc/memutils/
lib/debug/memutils.ae674<memutils_bios.oe674>" expects 8-byte alignment of
arrays, but previous files align arrays to 4 bytes
error: errors encountered during linking;
"bin/debug/universal_dma_example_dsp.xe674" not built
gmake[2]: *** [bin/debug/universal_dma_example_dsp.xe674] Error 1
gmake[2]: Leaving directory `D:/work/dsp/dspWS/framework_components_3_23_03_17/examples/ex01_universal_dma_copy_dsp/app'
gmake[1]: *** [all] Error 2

------------------------------------------

Any suggestion solution for the error?

I just download the  framework_components_3_23_03_17 from ti website and unpack to the $(DEPOT) directory.

And my other components is:

----------------------------------

CCSv5.3.0

framework_components_3_23_03_17

OSAL_INSTALL_DIR = $(DEPOT)/osal_1_23_00_04
XDAIS_INSTALL_DIR = $(DEPOT)/xdais_7_23_00_06
EDMA3_LLD_INSTALL_DIR = $(DEPOT)/edma3_lld_02_11_05_02
XDC_INSTALL_DIR = $(DEPOT)/xdctools_3_24_05_48
BIOS_INSTALL_DIR = $(DEPOT)/bios_6_34_04_22

ti.targets.elf.C674 ?= $(DEPOT)/ccsv5/tools/compiler/c6000_7.4.1

ti.targets.arm.elf.M3 ?= $(DEPOT)/ccsv5/tools/compiler/arm_5.0.1

BRs,

xmatt

  • Most likely these errors are due to a mismatch between the codegen tools used to build the FC libraries and the one you are using to build your application.

    You are using $(DEPOT)/ccsv5/tools/compiler/c6000_7.4.1.

    Per the release notes, FC has been built using:- ti.targets.elf.C674 - 7.2.0 (see framework_components_3_23_03_17/framework_components_3_23_03_17_ReleaseNotes.html#Validation). 

    Could you try matching the tools version and trying to build the example again ?

    Thanks,

    Gunjan.

  • Matt,

    There is a bug in the example codec's makefile that is causing the error you are seeing.  The "-mv6740" option is missing
    from the compile flags.  Could you try editing the ex01_universal_dma_copy_dsp/codec/makefile and add the -mv6740 to the
    CFLAGS variable?  It should look like this:

    CFLAGS = -qq -pdsw225 -pden -pds=195 --abi=eabi  -Dxdc_target_name__=C674 -Dxdc_target_types__=ti/targets/elf/std.h -eo.oe674 -mv6740

    Then you should be able to build with the 7.4.2 codegen tools.

    Best regards,

        Janet

  • Janet,

    I have add the "-mv6740" option into the CFLAGS, and it does work well with 7.4.2 codegen tools. Thanks.

    @Gunjan, thanks for your input.

    Best Regards,

    xMatt