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.

problem in using MAD tools



Hi

i am using C6670 DSP and i want to download the different applications to different cores. i am using MAD tools for this according to the procedure given on http://processors.wiki.ti.com/index.php/MAD_Utils_User_Guide, but when i am invoking the build script( ./build_examples_lnx.sh  c6670 little static) for the buliding of applications in windows environment using MINGW i am getting the following errors:

amandeep.singh@DT0005032 /c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples
$ ./build_examples_msys.sh  c6670 little static
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/shlibs/build'
rm -rf obj
rm -rf *.a
mkdir -p obj
touch obj/.created
compiling ../src/printf.c
cl6x -c --abi=elfabi -g --mem_model:data=far -fr=obj -I "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin"/include -I../src ../
rc/printf.c --output_file obj/printf.obj
"../src/printf.c", line 36: fatal error: could not open source file "stdio.h"
1 fatal error detected in the compilation of "../src/printf.c".
Compilation terminated.

>> Compilation failure
make: *** [obj/printf.obj] Error 1
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/shlibs/build'
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_1/build'
rm -rf obj
rm -rf *.exe
rm -rf map.txt
mkdir -p obj
touch obj/.created
make: *** No rule to make target `../../shlibs/build/printf.a', needed by `app_1.exe'.  Stop.
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_1/build'
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'
rm -rf obj
rm -rf *.exe
rm -rf map.txt
mkdir -p obj
touch obj/.created
make: *** No rule to make target `../../shlibs/build/printf.a', needed by `app_2.exe'.  Stop.
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'

amandeep.singh@DT0005032 /c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples
$ ./build_examples_lnx.sh  c6670 little static
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/shlibs/build'
rm -rf obj
rm -rf *.a
mkdir -p obj
touch obj/.created
compiling ../src/printf.c
cl6x -c --abi=elfabi -g --mem_model:data=far -fr=obj -I /opt/TI/TI_CGT_C6000_7.3.1/include -I../src ../src/printf.c --output_file obj/printf.obj
make: cl6x: Command not found
make: *** [obj/printf.obj] Error 127
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/shlibs/build'
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_1/build'
rm -rf obj
rm -rf *.exe
rm -rf map.txt
mkdir -p obj
touch obj/.created
make: *** No rule to make target `../../shlibs/build/printf.a', needed by `app_1.exe'.  Stop.
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_1/build'
make: Entering directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'
rm -rf obj
rm -rf *.exe
rm -rf map.txt
mkdir -p obj
touch obj/.created
make: *** No rule to make target `../../shlibs/build/printf.a', needed by `app_2.exe'.  Stop.
make: Leaving directory `/c/Program Files/Texas Instruments/mcsdk_2_00_07_19/tools/boot_loader/mad-utils/mad-loader/examples/app_2/build'

 

please help how can i proceed further

thanks in advance.

  • Looks like 'stdio.h' is not located in the include path provide. 

    A quick glance and this include path seems incorrect.

    cl6x -c --abi=elfabi -g --mem_model:data=far -fr=obj -I "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin"/include -I../src ../

    'stdio.h' is usually in the /ccsv5/tools/compiler/c6000/include path not /ccsv5/tools/compiler/c6000/bin where the tools actually are.

    Best Regards,

    Chad


  • but when i use  "/ccsv5/tools/compiler/c6000/include" path now i am gettin the following error:

    cl6x -c --abi=elfabi -g --mem_model:data=far -fr=obj -I "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include"/include -I../src
    ../src/printf.c --output_file obj/printf.obj
    /bin/sh: cl6x: command not found
    make: *** [obj/printf.obj] Error 127 

    now it is not able to find the path for cl6x utility i guess. which is  present in the bin folder. 

  • Ok, that's grabbing it the compiler.   Maybe, it's the "/include  that's following that.  It looks like possibly the -I ../include that should have followed the "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin"  got shortend to /include.

    That said, it's an include pathing issue.  If you have the original source of this make/build file you should take a look at it.

    Best Regards,

    Chad