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.

IAR sources and CCS

Hi,

 I have a question to TI people responsible for contracting out sample software from IAR Systems:

How difficult it would be to put in specification for IAR contractor, the requirement, that the sources have

to compile succesfully under both IAR EW and TI CCS?

I have tried to move the eZ430RF2480 sample code from IAR to CCS, but it looks like a huge task, judging by initial amount of compiliation errors.

Jan

  • I see that I have the same problem now and your thread has not been answered for over 2 years.... so im going to guess the ti people responding to these threads are not programmers, and really dont know the answer. 

     

    What i've done to try to convert an IAR sample project over to a CCS project is remove the #ifdef define for each individual compiler in the header files.  Doing this one by one to avoid pile ups of 200+ errors.  This is extremely labourous and will turn your hair gray if you have any left, but a must because the code composer studio compiler definition remains a mystery.

     

    There was no easy way to move the IAR project over to CCS.  I had to Cut and Paste the code from each .c and .h file into a new project with the .c and .h files created manually.

     

    Luckly,  IAR's headers for each chip pin out definitions were that same as CCS's or that would have really sucked.

     

    I still dont know the CCS compiler #ifdef.... if someone at TI could provide that, this entire task would be very simple.

  • Hi Randy,

     

    use the following structure for your sources, to make them compatible with different compilers:

     

    #ifdef __IAR_SYSTEMS_ICC__  /* IAR C Compiler */
                 asm("nop");
    #else
                asm(" nop");
    #endif

     

    hope this will help

    Jan

  • Randy Carpenter said:

    I still dont know the CCS compiler #ifdef.... if someone at TI could provide that, this entire task would be very simple.



    Please take a look at this post.

  • Hi,

    I have the same problems!!

    Where have I to write this code? only in the main of CCS or in every attached .c  ?

    Thank you