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.

#41 expected an identifier



Hello everyone,

I am an inter. I am trying to to compile contiki on CCS but it doesnt work. I have already included all the path to the path otpions and I do not have problems with that. They all come from something else. 

Please help me if you can. 

this is a common error that I have: 

#41 expected an identifier

with the following code:

ISR(TIMER1_A0, timera0)

{

  ENERGEST_ON(ENERGEST_TYPE_IRQ);

  watchdog_start();

  rtimer_run_next();

  if(process_nevents() > 0) {

    LPM4_EXIT;

  }

  watchdog_stop();

  ENERGEST_OFF(ENERGEST_TYPE_IRQ);

}

thx.

  • Ishaka Ambdi,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    When you have a new question, it needs to be posted to a new thread. You will also want to supply all the information that someone would need to help you, such as the version of CCS and the TI device you are using. In this case you tacked onto the end of a 3-year old thread that should have been marked as Answered, but that thread has no relevance to your question other than being about an ISR. For your convenience this time, a moderator will move this to a new thread.

    I do not know what an "inter" is, nor what "contiki" is, and your code is unfamiliar in content and syntax for what I expect on a C64x Multicore DSP program. More information will be needed.

    From what I can tell from your post above, you have a short program that has a compiler syntax error. And you want someone to find your syntax error using just a snippet from your code. If the code were familiar, this might be possible. But this could be valid C code depending on the lines above it that define all or some of the symbols.

    Your compiler gives you more information than we have. You should know exactly where the error is and that should give you a good idea what you need to fix. Most likely, you have either a typing error or you are missing a header file.

    Regards,
    RandyP

  • Try adding the option --verbose_diagnostics .  With that option, the compiler echoes the problem source line, with a caret ^ marking the critical point in the line.  That usually helps.

    Thanks and regards,

    -George