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.

Compiling IAR Assembly code in Code Composer

Other Parts Discussed in Thread: MSP430F5418

We have a serial port bootloader written for the NON-A version of the MSP430F5418 using the IAR system.  Since IAR wants $$$$ to update our system to include the 5418A, we want to move everything over to Code Composer. 

1.  Is there any way to compile the soruce file with  IAR mnemonics directly in code composer?

2.  If there isn't, are there any tools available anywhere to convert from IAR Mnemonics to Code Composer?

3. and finally, if we have to do the conversion manually, are there any neat tables or other helpful documents that will speed up the process?

 

Thanks

Kelly

 

  • Hi,

    find some documents enclosed (they were in the doc folder under MSP430 of your CCS installation):

    Rgds
    aBUGSworstnightmare

    3463.SLAU131E.pdf

    0550.SLAU132E.pdf

    8080.SLAU157P.pdf

     

  • LOL...

    Hey Rdgs, thanks for taking the time to reply. I'm not sure I see the point of your reply, but since no one else even bothered, it's better than nothing. The first document is the Assemblers reference manual... thanks for pointing that out, and that it was there all along, but I did find that before asking Kelly to email, and I did read it, and I don't see anything in there about translating the one to the other. The second is the compilers reference manual, and again, I knew about that, and read it, and I don't see an option for setting the compiler to use a different asm syntax. The final document is the CCS manual. Again, I read it, there doesn't appear to be any mention of the two formats in there.

     

    So what I'm hearing from you is "RTFM"

     

    And what I'm saying is "I did, and I don't see how it answers the question"

     

    So if you have something more helpful to say, even if it is just "yeah, this is a problem, your screwed, translate it by hand" then that would be very appreciated.

     

    But if you just want to post links to manuals and insinuate that we didn't read them... Well... thanks for taking the time to insult me, but I don't really need it.

  • James Newton said:
    So what I'm hearing from you is "RTFM"

    Basically, that's all of the documentation that is out there on this topic.

    There is no comparison chart. Nobody has bothered to write an assembly migration guide.

    All you can do is to read the assembly documentations of both, IAR and CCS and see what you have to change manually.

    That there is no help may be the reason why nobody has bothered answering you. Nobody (actually including me) knows for sure that it won't exist, but nobody knows that something exists, so everybody skipped over this thread (including me on the first time).

    Would hundreds of "I don't know" posts have helped you?

    James Newton said:
    But if you just want to post links to manuals and insinuate that we didn't read them...

    You'd be surprised how many people are unable to locate the resource links on a product page. (hint: many!) Or just don't want to invest the time if they can ask someone else (hint: many more!)
    And details like the assembler manual are often even more hidden than that.

    Surely no insult intended from him, only an answer based on forum experience.

  • Now THAT was a truly helpful answer, thank you.

    And if he had said, "All I can do is point you to the manual, maybe there is something in there" then I would agree that no insult was intended.

    Having said that, maybe I'm wrong and he was just being terse... I'd like to think so.

    Back to the issue at hand: Has no-one made a list of "replace <this> with <this> " to take care of the more obvious changes? For example, "#include" needs to be replaced with ".include" and if not, would it be helpful if I posted the list I come up with? Is there a good format for that sort of thing?

    I was thinking of using the multiple find and replace in files functions of this handy little program

    http://www.funduc.com/search_replace.htm 

    which I've used many times in the past to help power through the more repetitive parts of this sort of problem. Other ideas?

  • Hi, 

    since you read through all the documentation you should be well aware of Appendix C in SLAU157P.pdf - IAR 2.x/3.x/4.x to CCS Assembler Migration! So, why do you ask for help again!

    Rgds
    aBUGSworstnightmare

  • Thank you very much for your additional help in pointing out what I had missed. I very much appreciate it!

  • James Newton said:

    Back to the issue at hand: Has no-one made a list of "replace <this> with <this> " to take care of the more obvious changes? For example, "#include" needs to be replaced with ".include" and if not, would it be helpful if I posted the list I come up with? Is there a good format for that sort of thing?

    It turns out that #include is not always to be replaced with .include... sometimes (especially when including the processor .h file) it apparently needs to be replaced with .cdecls C,LIST, 

    James Newton said:

    I was thinking of using the multiple find and replace in files functions of this handy little program

    http://www.funduc.com/search_replace.htm 

    which I've used many times in the past to help power through the more repetitive parts of this sort of problem. 

    And I've done that, or at least started on it.

    7343.IAR_A430-CCS_ASM430.zip

    The attached file has a funduc SR script that specifies a sequence of searches and replacements that does a lot of the work of converting from IAR to CCS. It's probably got all sorts of errors in it, but it's still better than nothing. The ones that can't be converted exactly, but that have some value anyway, will insert a special one eyed* smiley wink ,o) which you can search on to see where you need to do more work. In a lot of cases, I included a reference to the exact section SLAU157P that relates. So search for ",o)" after you run the search and replace script and then fix up those statements.

    Any feedback appreciated.

    * my wink has one eye because it lost the other one in Iraq.

  • Updated version of the replacement script for converting from IAR A430 to CCS ASM430. Many corrections and bugs fixed.

    4377.IAR_A430-CCS_ASM430.zip

    http://www.funduc.com/search_replace.htm 

  • KickStart is free and has not code size limit for assembly code.

    Free CCS has code size limit even for assembly code.

**Attention** This is a public forum