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.

G726 codec on C55x

Hi,

After unsuccessful attempt to run speex on C5505 USB stick, I turned to TI released G726 codecs http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C55X_Speech/index_FDS.html for C55x platforms.

Query: Has anyone tried installing this codec?

I am facing following trouble:

OS: Windows XP

CCS: v4

I downloaded the codec exe from http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C55X_Speech/index_FDS.html and extracted the folder c55x_g726_2_00_00_012_production in c:/program\ files/c55x_g726_2_00_00_12/G726_3X_REL200_ROOTDIR.

I followed the instructions given in readMe. But the makefile grossly differs from the environment that I have. Readme specifies CC studio version 2.20 to compile the build the C726 code whereas I have CCS v4 (which comes with eZDSP stick kit).

This implies that many lines in makefile which assume certain paths according to CC studio version 2.20 are now invalid for my environment. e.g. TEST_C = $(TOOLSCCSC55XDOS) /xdais/src/api/alg_malloc.c is not present for CCS v4.


When I run make in g726/make in cygwin, I get following error "make: *** No rule to make target '/xdais/src/api/alg-malloc.oc', needed by 'g726_encoder-ms.out'. Stop.". Basically this file alg_malloc.c is not present on my system at all.

Can somebody suggest way to go further?

Vijay

  • Hello,

    This release package supports makefile based build procedure to build the target executable on C55x. CCS2.20 was used to verify the codec functionality on C5510 EVM. Since the codec release happened quite some time back, we did not verify this codec with CCS v4. You can create your own project on CCS v4 using the codec library, test harness files and API header files available in the release package.

    regards,

    Venkat

  • Hi Venkat,

    Thanks for your reply.

    This is what I am thinking

    step1: compile and test the test application

    step2: integrate library with my code that runs on C55x USB stick with the help of CCS v4

    However, as I dig into the compilation of g726 (mainly through makefile), I see lot of dependencies with CCS v2 (with which the the library was originally tested). I am pasting first few lines of makefile that I have changed as compared to original. There are few files like alg_malloc.c which the compilation requires that are missing on my environment.

    I don't know how fair it is to ask but can you let me know the exact procedure (perhaps with makefile) to at least compile the library with CCS v4 environment.

    Thanks.

    Awaiting your reply.

    Regards,

    Vijay

    First few lines of makefile in C:\Program Files\c55x_g726_2_00_00_012_production\G726_3X_REL200_ROOTDIR\g726\c55x\make. If you compare it with original, you will see the differences I am talking about.

    *********************************************

    CDEFS =

    ifeq ($(BUILD),ML)

    CFLAGS = -g -ml -I/usr/include

    ASMFLAGS = -g -mk

    #ALLFARLIB = $(TOOLSC55XDOS)/cgtools/lib/rts55x.lib

    ALLFARLIB = C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/c5500/lib/rts55x.lib

    else

    CFLAGS = -g

    ASMFLAGS = -g

    #ALLNEARLIB = $(TOOLSC55XDOS)/cgtools/lib/rts55.lib

    ALLNEARLIB = C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/c5500/lib/rts55x.lib

    endif

    # Tools directory

    #CC = $(TOOLSC55X)/cgtools/bin/cl55

    #LD = $(TOOLSC55X)/cgtools/bin/lnk55

    #AS = $(TOOLSC55X)/cgtools/bin/masm55

    CC = C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/c5500/bin/cl55

    LD = C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/c5500/bin/lnk55

    AS = C:/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/c5500/bin/masm55

    #$(TOOLSCCSC55XDOS)/xdais/src/api/alg_malloc.c

    TEST_C = ../../tstsrc/c55x/ascii2hex.c \

    ../../../misc/muatbl.c \

    ../../tstsrc/c55x/g726EncoderMain.c ../../tstsrc/c55x/g726DecoderMain.c -I/usr/include