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.

BOOST5545ULP: Defining the dictionary for the on-board microphone for C5545

Part Number: BOOST5545ULP

Hello All,

I have tried to read through the documentation and all of it seemed elusive. Is there a way i can define my own library? I basically want to replace PLAY,Pause and STOP in the C55audio_demo with LEFT, RIGHT and Stop the respective gpio programming as well.  I tried comparing the dictionary for the C55audio_demo and TIesr_C55_demo where the dictionary is defined for "t i voice trigger" . Can somebody help me with this, please? I am in a hurry!

Sincerely

Akshay.

  • Hi Akshay,

    Our team will need some time to gather data. Please allow us a few days and we will get back to you.

    BR
    Tsvetolin Shulev
  • Akshay,
    Please see pg 16 of www.ti.com/.../tidubj5a.pdf

    In file /TIesr_src/TIesr_model_build/build_files.sh

    Dist/LinuxDebugGnu/bin/testtiesrflex "start(_S). _S ---> left | right | stop." Data/GramDir_playpausestop Data/OffDT_GenDict_PhbVR_LE_MQ English 2 0 1 1 1 1

    $make LinuxDebugGnu PROJECTS='TIesrDTso TestTIesrDT'

    Lali
  • Hello Lali!

    I tried the first step to create a directiry as shown in step 3 "make LinuxDebugGnu" that returns me an error saying cannot find -lasound. The terminal like:
    iconslab@ICONSLAB-LIN:~/Desktop/TIesr_src/TIesr_model_build$ make LinuxDebugGnu
    cd TIesrFA/TIesrFA_ALSAso && make SUB=no CONF=LinuxDebugGnu build
    make[1]: Entering directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    "make" -f nbproject/Makefile-LinuxDebugGnu.mk QMAKE= SUBPROJECTS=NO .build-conf
    make[2]: Entering directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    "make" -f nbproject/Makefile-LinuxDebugGnu.mk ../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1
    make[3]: Entering directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    mkdir -p ../../Dist/LinuxDebugGnu/lib
    gcc -v -O0 -o ../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1 build/LinuxDebugGnu/GNU-Linux-x86/_ext/1360937237/TIesrFA_ALSA.o -lpthread -lasound -Wl,-znow,-zdefs -Wl,-h,libTIesrFA_ALSA.so.1 -Wl,--version-script=../resource/TIesrFAso.ver -shared -fPIC
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
    Target: i686-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
    Thread model: posix
    gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
    COMPILER_PATH=/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/
    LIBRARY_PATH=/usr/lib/gcc/i686-linux-gnu/4.6/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/:/lib/i386-linux-gnu/:/lib/../lib/:/usr/lib/i386-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/i686-linux-gnu/4.6/../../../:/lib/:/usr/lib/
    COLLECT_GCC_OPTIONS='-v' '-O0' '-o' '../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1' '-shared' '-fPIC' '-mtune=generic' '-march=i686'
    /usr/lib/gcc/i686-linux-gnu/4.6/collect2 --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf_i386 --hash-style=gnu -shared -z relro -o ../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1 /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o /usr/lib/gcc/i686-linux-gnu/4.6/crtbeginS.o -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. build/LinuxDebugGnu/GNU-Linux-x86/_ext/1360937237/TIesrFA_ALSA.o -lpthread -lasound -znow -zdefs -h libTIesrFA_ALSA.so.1 --version-script=../resource/TIesrFAso.ver -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-linux-gnu/4.6/crtendS.o /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crtn.o
    /usr/bin/ld: cannot find -lasound
    collect2: ld returned 1 exit status
    make[3]: *** [../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1] Error 1
    make[3]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    make[2]: *** [.build-conf] Error 2
    make[2]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    make[1]: *** [.build-impl] Error 2
    make[1]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
    make: *** [TIesrFA_ALSAso] Error 2
    iconslab@ICONSLAB-LIN:~/Desktop/TIesr_src/TIesr_model_build$
  • Hi Akshay,

    Do you have the  asound libraries installed?

    https://e2e.ti.com/support/dsp/c5000/f/109/p/604150/2223279

    Lali

  • Hi Lali!

    I did install asound libraries using synaptic. Attached is the screenshot as well as the terminal output. No it returns saying it is incompatible. Let me know what I should do.

    Terminal output: COLLECT_GCC_OPTIONS='-v' '-O0' '-o' '../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1' '-shared' '-fPIC' '-mtune=generic' '-march=i686'

    /usr/lib/gcc/i686-linux-gnu/4.6/collect2 --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf_i386 --hash-style=gnu -shared -z relro -o ../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1 /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o /usr/lib/gcc/i686-linux-gnu/4.6/crtbeginS.o -L/usr/lib/gcc/i686-linux-gnu/4.6 -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. build/LinuxDebugGnu/GNU-Linux-x86/_ext/1360937237/TIesrFA_ALSA.o -lpthread -lasound -znow -zdefs -h libTIesrFA_ALSA.so.1 --version-script=../resource/TIesrFAso.ver -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-linux-gnu/4.6/crtendS.o /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crtn.o

    /usr/bin/ld: i386:x86-64 architecture of input file `build/LinuxDebugGnu/GNU-Linux-x86/_ext/1360937237/TIesrFA_ALSA.o' is incompatible with i386 output

    collect2: ld returned 1 exit status

    make[3]: *** [../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1] Error 1

    make[3]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'

    make[2]: *** [.build-conf] Error 2

    make[2]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'

    make[1]: *** [.build-impl] Error 2

    make[1]: Leaving directory `/home/iconslab/Desktop/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'

    make: *** [TIesrFA_ALSAso] Error 2

    Screenshot:  Sincerely

    Akshay

  • Akshay,

    I'm out of ideas on why this error is occurring.
    This might be something to do with trying to compile on a 64-bit machine.
    askubuntu.com/.../building-a-32-bit-app on a 64-bit-ubuntu

    C:\ti\c55_lp\c55_csl_3.08\demos\TIesr\c5535\TIesr_model_build\TIesrFA\TIesrFA_ALSAso\Makefile

    I'm checking on this internally with some colleagues to see if they have suggestions to get past this error.

    Lali
  • Akshay,

    Were you able to resolve this error?
    Have you tried on another machine to see if you could get past the error?

    Lali
  • Hi Lali!
    I was not able to. I tried it on different machines yet it did not work.

    Akshay