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.

CCS/F28M36P63C2: Error while building project

Part Number: F28M36P63C2


Tool/software: Code Composer Studio

Hello,

I encountered the following errors while building a project. The nature of the error is one but i have it in 5 different places of my code. I am struggling to understand why i am getting this error.

Description                      Resource                               Path                    Location          Type
#66 expected a ";"           main_c28.c                     PC3_c28revA          line 1344          C/C++ Problem

Below is the code fragment where i encounter the errors

CLR_SS;

     //Set the data(1)/command(0) flag
     if(DATA==destination)
     {
         SET_MOSI;     // Error 1 line here
     }
     else
     {
         CLR_MOSI;    // Error 2 line here
     }


    //Clock it in.
       CLR_SCK;
       SET_SCK;

    //Clear the read(1)/write(0) flag to write, clock it in.


       CLR_MOSI;         // Error 3 line here


    //Clock it in.
       CLR_SCK;
       SET_SCK;

       for(mask=0x80;mask;mask>>=1)
        {
           if(mask&command) {
               SET_MOSI;           // Error 4 line here
           }
           else {
               CLR_MOSI;          // Error 5 line here
           }

           CLR_SCK;
           SET_SCK;
           }
   //Release the chip and end SPI Transfer
      SET_SS;

I have indicated the lines where i receive the error above. I clearly terminate the statement, yet the compiler says  " expected a ";"  ".

As always, appreciate any help.

Thanks,

Srini