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.

Compiler switch for DSK6713?

i m confused in a compiler option setting.....

in some book it is written to take -mv6700 in text box of target version and in some case it is written to take or choose -mv6701....

i m using DSK6713 version 2

which option i should select what this different option mean and how it can effect my building procedure?

regards

jay sompura

  • Jay,

    Since this is a new question, I will ask a Moderator to split it from your previous thread here. I will mark that thread as Answered since you have moved on from that question.

    This new question is not a device or silicon question (for the C67x Single Core DSP Forum), but has to do with the Compiler, so it will be best if they split this into the TI C/C++ Compiler Forum where the compiler experts will be looking for it. They will probably want to know which version of CCS and which version of the compiler you are using.

    As a suggestion for you while waiting for an answer there, please look in the Compiler User Guide for the version of the compiler you are using. You can do a search for mv67 to find a few occurrences. There is not quite as much detail as you might like, but there is a good set of information that may help you. Personally, I would like to see your results if you use the --silicon_version=6713 switch to see if that 1) works well for you, and 2) is acceptable to the compiler.

    Regards,
    RandyP

     

  • thank u randy 

    i have post my compilation error on TI C/C++ support forum...

    i have taken refrence from link

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/215890.aspx

    i have attached error with my view of project explorer....

    give me exact procedure.....to transfer programme...

    programme is taken from R.chassaing's book so there is no doubt that programme is correct.....

    regards

    jay sompura 

    1614.error.rtf 

  • please do not see the previous error....

    i have attached new error....

    my error is very similar to error of Darrell Thomas...i have seen post of darrell and u

    according to that post i have made some changes in my project bust still i got errors...but i hope i will be sort out..

    i have added dsk6713.gel files manually is it right thing to do?

    i have found that u said no to darrell to add it manually....

    i have also done following changes according to your suggestion....

    . In the Build Properties -> C6000 Compiler -> Runtime Model Options, there is a selection for "Data access model (--mem_model:data). The default may be near, and that may be incompatible with one or more of the libraries since they use the .far section. Change this to either "far" or "far_aggregate" and see if the linker works better.

    i have added some header file in my programme according to darrell's post...

    #include "dsk6713_led.h" 
    #include "dsk6713_dip.h"

    but i am not able to understand following part of darrell's post



    While I was dealing with headers, I added inclusion guards around "C6713dskinit.h" in case it was referenced more than once:

    #ifndef C6713_DSKINIT_

    #define C6713_DSKINIT_

    ...(header code)...

    #endif

    That cleaned up the " warning #225-D: function declared implicitly" except for two declarations I added to the sine8_LED.c code.

    void comm_poll();                
    void output_left_sample(short out_data);

    The comm_poll() function is defined in c6713dskinit.c and prototyped in c6713dskinit.h.  Simply adding #include "c6713dskinit.h" to the sine8_LED.c file doesn't work.  It spits out  a few errors:

    **** Build of configuration Debug for project my_sine8LED ****
    ...
    <Linking>
    error #10056: symbol "_config" redefined: first defined in

       "./c6713dskinit.obj"; redefined in "./Sine8_LED.obj"
    >> Compilation failure
    error #10056: symbol "_AIC_data" redefined: first defined in
       "./c6713dskinit.obj"; redefined in "./Sine8_LED.obj"
    error #10056: symbol "_hAIC23_handle" redefined: first defined in
       "./c6713dskinit.obj"; redefined in "./Sine8_LED.obj"
    error #10056: symbol "_AIC23CfgData" redefined: first defined in
       "./c6713dskinit.obj"; redefined in "./Sine8_LED.obj"
    error #10010: errors encountered during linking; "my_sine8LED.out" not built
    gmake: *** [my_sine8LED.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    Adding the prototypes to the sin8_LED.c program seems to work.  It compiles with warnings, but no errors --yeah!:  So, I have a sine8_LED.out file, but it won't load on the board.


     how we has done building without error..?

    chip support library downloaded from TI website  doesnot support windows7, it is written in one of the notes which  is inside that file  so how darrell has build that on win 7? means is there any upgraded version of csl that work on win 7?

    i have attached a screen shot of my ccs project window so you can see what i have included...

    i am posting my error here....

     

    **** Build of configuration Debug for project sine8_led ****

     

    C:\ti\ccsv5\utils\bin\gmake -k all

    'Building file: ../main.c'

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv-mv6700 -g --define=CHIP_6713 --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/dsk6713/lib" --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/dsk6713/include" --display_error_number --diag_warning=225 --mem_model:data=far_aggregates --abi=coffabi --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"

    >> WARNING: invalid version 0, defaulting to 6200

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1041: error #838: unrecognized cregister name 'FADCR'

     

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1041: error #658-D: the modifier "cregister" is not allowed on this declaration

    >> Compilation failure

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1240: error #838: unrecognized cregister name 'FAUCR'

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1240: error #658-D: the modifier "cregister" is not allowed on this declaration

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1451: error #838: unrecognized cregister name 'FMCR'

    'Building file: ../vector_poll.asm'

    "C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include/csl_chiphal.h", line 1451: error #658-D: the modifier "cregister" is not allowed on this declaration

    "../main.c", line 10: warning #225-D: function declared implicitly

    "../main.c", line 18: warning #225-D: function declared implicitly

    6 errors detected in the compilation of "../main.c".

    gmake: *** [main.obj] Error 1

    'Invoking: C6000 Compiler'

    "C:/ti/ccsv5/tools/compiler/c6000_7.3.4/bin/cl6x" -mv-mv6700 -g --define=CHIP_6713 --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/bios/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/dsk6713/lib" --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.4/include" --include_path="C:/ti/ccsv5/DSK6713/DSK6713/c6000/dsk6713/include" --display_error_number --diag_warning=225 --mem_model:data=far_aggregates --abi=coffabi --preproc_with_compile --preproc_dependency="vector_poll.pp"  "../vector_poll.asm"

    >> WARNING: invalid version 0, defaulting to 6200

    'Finished building: ../vector_poll.asm'

    ' '

    gmake: Target `all' not remade because of errors.

     

    **** Build Finished ****

     

     regards 

    jay sompura

    8255.Doc2.docx

  • I'm pretty sure that if you fix the error discussed in this thread, then most of these errors will clear up.

    Thanks and regards,

    -George