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: Porting firmware from IAR Workbench to CCS

Other Parts Discussed in Thread: MSP430F2619

Tool/software: Code Composer Studio

Hello Everyone, I am trying to port an older firmware written in C from IAR workbench (evaluation kit) (v7.11) to CCS v7.4. I was looking up the guidelines mentioned in 

http://processors.wiki.ti.com/index.php/How_to_Convert_a_Project_from_IAR_to_CCS

but couldn’t find how to generate or find .cfg file from IAR Workbench. Can anyone please let me know how to get this porting working?

  • Hello,
    I believe IAR EW cfg file has additional compiler options that are read by IAR EW on project build. This file does not always exist so if you do not see it, then you can likely skip that step mentioned in the wiki.

    Thanks
    ki
  • i did try that, getting 100s of errors., mostly related to mapping (I guess). not working unfortunately :(
  • Are trying to convert an MSP430 project using MAVRK SW?
  • Hi, No. I am not. I am trying to convert MSP430Fxxx project from IAR Workbench to CCS. MAVRK SW is not included. Most of my errors are:

    #86 invalid storage class for a parameter,

    #100 a declaration here must declare a parameter,

    #131 null: expected a "{"

    #148 declaration is incompatible with "volatile unsigned int FCTL3" (declared at line 733 of "C:\ti\ccsv7\ccs_base\msp430\include\msp430f2619.h")

    gmake: *** [lib/****.obj] Error 1

    and expected an identifier.
  • Many of those are standard compiler errors. If you need assistance resolving them, I suggest you post a new thread in the compiler forum with the requested information in the link below:
    software-dl.ti.com/.../sdto_cgt_How-to-Submit-a-Compiler-Test-Case.html
  • Hi, I am not sure if I can share my code with TI. I did read the IP rights, but I may need to get approvals prior to doing that... 

    is there no other way of solving this issue?/

    i also created a new project, simply added the src & header files from IAR project into the new project, but still getting similar errors. not sure what is wrong now. 

  • RVN_NBD said:
    i also created a new project, simply added the src & header files from IAR project into the new project, but still getting similar errors. not sure what is wrong now. 

    This is likely due to some incompatible macros and such between the IAR compiler and TI compiler. Without more details about the code, it is difficult to provide more suggestions.

    In any case, I suggest posting more followup questions in either the MSP or compiler forum. The MSP experts will be more familiar with IAR EW and with potential code migration issues while the compiler experts will be most familiar with the specific build errors when using the TI compiler

    Thanks

    ki

  • it was problems in definition of macro#s between IAR & CCS