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.

Build Problem in CCS5.1.0

Other Parts Discussed in Thread: CC430F5123

Hello,

I am new in this field. I am trying to run simple code in CCS5.1.0 which is given below.

 

#include "msp430x22x4.h"

volatile unsigned int i; // volatile to prevent optimization

void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction

for (;;)
{
P1OUT ˆ= 0x01;
i = 50000; // Delay
while (i != 0)i--;
}
}

But when I run, it gives me error :


**** Build of configuration Debug for project HelloWorld ****

C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../main.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv5/tools/compiler/msp430/bin/cl430" -vmspx --abi=coffabi -O0 -g --include_path="C:/ti/ccsv5/ccs_base/msp430/include" --include_path="C:/ti/ccsv5/tools/compiler/msp430/include" --define=__CC430F5123__ --diag_warning=225 --display_error_number --silicon_errata=CPU18 --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 12: error #7: unrecognized token
"../main.c", line 12: error #66: expected a ";"
2 errors detected in the compilation of "../main.c".

>> Compilation failure
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I tried to find out it solution online, i tried many steps like firewall off, reinstall. but i am getting error continuously. I will be very thankful to you, if you can help me to solve my problem.

Thanks

  • Add the option --verbose_diagnostics to see this ...

    "main.c", line 12: error #7: unrecognized token
      P1OUT ê= 0x01;
            ^
    
    "main.c", line 12: error #66: expected a ";"
      P1OUT ê= 0x01;
            ^
    

    Note how the ^ character indicates where on the source line the problem starts.  The ^ character on that line is corrupted somehow.  Fix that and it builds clean.

    Thanks and regards,

    -George

  • Thanks George, Actually i solved this problem already. but i am having another problem. I install CCS6 in Windows 8, my program is debug successfully but i am getting error pop up message-

    Error initializing emulator:
    No USB FET was found

    I tried to solve this problem, but did not able to fix it.
    Can you please help me to solve this problem. I also tried it in windows 7 32 bit but the problem remains same.
  • George once again thanks, By the way I solved my problem. I download driver from the given link and now my program working perfectly.
    processors.wiki.ti.com/.../MSP_Debug_Stack