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.

  • Resolved

iomacros.h broken in GCC_RH_20140508.zip

Expert 2105 points

Replies: 7

Views: 1158

In the latest headers (obtained here http://www.ti.com/tool/msp430-gcc-opensource)  for msp430-elf-gcc, the iomacros.h is broken when you try to compile even simple c++ code. 

See the discussion here:

http://e2e.ti.com/support/microcontrollers/msp430/f/166/p/355154/1251963.aspx#1251963

  • I can reproduce a similar problem.  The file iomacros.h is not supplied by the compiler development team, which changes how I report this issue.  I have to get some help on that, and then get back to you.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Assembler files seem to be broken also. It doesn't account for the const SFR variables.

    ... Error: unknown opcode `const'

    A quick hack to add some defines gets rid of the errors:

    ...
    #if 1
     #define const_sfrb(x,x_) x=x_
     #define const_sfrw(x,x_) x=x_
     #define const_sfra(x,x_) x=x_
     #define const_sfrl(x,x_) x=x_
    #endif
    ...
    

    -rick

  • In reply to Rick Kimball:

    Another problem is the use of the _GNU_ASSEMBLER_ define in iomacros.h and in430.h. That define doesn't seem to be produced by the toolchain. However, the msp430-elf-gcc automatically defines __ASSEMBLER__, as it did with the older msp430-gcc,  when you compile an assembly .S file.

    I added:

    ...
    #if defined(_GNU_ASSEMBLER_) || defined(__ASSEMBLER__)
    ....

    to allow me to compile .S files with msp430-elf-gcc without having to define _GNU_ASSEMBLER_ 

    -rick

  • In reply to George Mock:

    Any luck in tracking down who maintains this? Is there someplace else I should report this?

    -rick

  • In reply to Rick Kimball:

    I apologize for the delay.  I've made a few missteps on this one.  I think I finally contacted the right folks.

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    I filed an entry in the Bugzilla system used by the team responsible for the MSP430 Header and Support Files.  The ID number is 8328.  The entry complains that iomacros.h doesn't work when the GCC compiler sees it in C++ source. 

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Thanks!  BTW: Did you mention that assembly files are broken also?

    Who is actually responsible for the headers? 

    -rick

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.