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.

Help needed with using IAR to CCS conversion perl script

Other Parts Discussed in Thread: MSP430F2274

Hi John,

I tried to convert the file mul.s43, present within slaa280a.zip, from s43 format to asm format using the Perl script you have suggested. After installation of the environment and understanding the use, I have typed the command:

 

perl iar2cce.pl msp430f2274 msp430x22x4.h

 

The script has run, and it has produced the file _mul.s43 with the same content of the original mul.s43.

 

Any idea of why? Is there a mul.asm already available somewere?

 

Thanks a lot,

 

Michele

  • Michele,

    I haven't used this script myself.  I may split the post and move this part into the MSP430 forum.  

    In the script I see code that looks like this:

    $current_file_name =  $asm_file_names[$index]; 

      my $cce_asm_file = '_' . "$current_file_name";

    So to me the output would be the file name with "_" in front.

    John

     

  • Michele,

    the two assembly files should be very similar, identical for the most part, since the assembly language is retained when switching from IAR to CCS (or vice versa). The only change is some of the variables or symbol definitions (e.g. #define becomes .equ)

    I ran the script on the same file that you tried on, and the _mul.s43 is indeed very similar to the mul.asm, with the only changes being the #define values ---> .equ. This file should be usable in CCS with no or just 1-2 changes (not sure if the public keyword is the same, you might have to double-check).Let me know if this works, otherwise the perl script could use a couple of additions on keyword translations.

    Attached is the _mul.s43 file, probably the same as the one you generated. You can simply change to mul.asm if that's the extension you preferred.

     

    Regards,

     

    Dung

     

     

    _mul.s43

**Attention** This is a public forum