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/MSP430F5419A: CCSv6.2 and GNU Compiler - Interrupt routines

Part Number: MSP430F5419A

Tool/software: Code Composer Studio

Hi,

I want to switch to GNU v6.2.1.16 compiler in CCS 6.2.0.00050. My interrupt routines are disabled with the message "Compiler not supported!"

#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif

How can I use interrupt routines with GNU Compiler? Where can I find the documentation of the GCC?

Thank you for your help

  • msauer75 said:
    I want to switch to GNU v6.2.1.16 compiler in CCS 6.2.0.00050. My interrupt routines are disabled with the message "Compiler not supported!"

    Can you clarify which of the following happens:

    a) Does the GCC compiler report the "Compiler not supported!" error?

    b) Does the syntax highlighting in the CCS editor highlight the "Compiler not supported!" as the active code with the void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void) line grayed out?

    When using the GNU v6.2.1.16 compiler in both CCS 6.2.0.00050 and CCS 7.1.0.00016 I was able to successfully compile an example program which used interrupts.

    In CCS 7.1.0.00016 the syntax highlighting in the CCS editor highlighted the GCC void __attribute__ ((interrupt(ADC12_VECTOR))) ADC12ISR (void) line as the active code:

    Whereas with CCS 6.2.0.00050 the syntax highlighting incorrectly highlighted the #error Compiler not supported! line as the active code:

    The issue is that in 6.2.0.00050 the builtin __GNUC__ compiler macro is not being picked up by the CCS indexer, and so the syntax highlighting in the CCS editor is incorrect. While this is an inconvenience when editing, it shouldn't stop the use of  the GNU v6.2.1.16 compiler in CCS 6.2.0.00050.

  • Ok. That is the behaviour of my CCS.

    But at the moment I have the problem that my programm doesn't work correct after I switched the compiler from TI to GCC. Is there any information about differences between the two compiler?

    BR

    martin