CCS/TMDSEVM6472: C code

Part Number: TMDSEVM6472

Tool/software: Code Composer Studio

hi 

This is my first time usinig CCS..my C code works fine with code blocks however when i try to run it with CCS i got a lot of errors  such "


"P_estimate" is not a type name "

"a parameter is not allowed "

"declaration is incompatible with "double kg2" 

"[E0800] Instruction invalid for C6200 "

7 Replies

  • I think it is best to work through these one at a time.  So, for ...

    mariam triki
    "P_estimate" is not a type name "

    I presume you are compiling a C source file when this occurs.  I need to reproduce the same error to understand how it occurred.  Please preprocess the source file and attach that to your next post.  Show all the build options exactly as the compiler sees them.  Copy-n-paste that from the Console view after the failed build.  Indicate the version of the compiler (not CCS) you use.  Please view this short video to learn how to do that.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    hi 

    thank you for your response 

    i am using TI v7 2.0 compiler  filtre .pp.txt

    i attached my preprocessed source file  ( I hope that i get it  right)  as well as Build result

  • In reply to mariam triki:

    Unfortunately, you attached the wrong preprocessed file.  The .pp file is placed in same directory as the source file.  You attached the one that is in the Debug directory (or whatever the name of the current build configuration is).  

    Please copy-n-paste the build options from the Console view.  A screen shot of the Problems view does not have that information.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    i hope  i get it right  now 

    Thanks and regards, filtre1 .pp.txt

  • In reply to mariam triki:

    Thank you.  That is the preprocessed file I needed.

    C source expressions like ...

      X_update[0]= x0;
    /* skip some lines */
      for (i=1;i<len_z;i++){
    

    ... can appear only within a function.  You have no function which encloses these statements.

    This forum is not a good place to learn how to program in C.  I recommend you get a good book on C, go through some online tutorials about C, and other things like that.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Thank you Mr Geroge
    i will try to focus on my C language
    However what i don't understand is that this code used to work fine with Code blocks and i run it on a Cortex M0 processor from ARM and it 's not like i used some specific instructions
  • In reply to mariam triki:

    Unfortunately, I am not familiar with Code blocks.  So I cannot explain how your code works in that system.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.