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.

Build problem with #pragma vector in imported Energia sketch

Other Parts Discussed in Thread: ENERGIA

I have the following interrupt definition in an Energia sketch imported into CCS:

#pragma vector=PORT3_VECTOR

__interrupt void PORT3_ISR_HOOK(void) {

...

}

I get a warning:  

warning: malformed '#pragma vector' - ignored [-Wpragmas]

building with CCS 6.1.3 on two PCs, But no errors on at least 4 other PCs.  The ISR doesn't fire on builds with this warning.

I have not been able to find out why this warning occurs on some machines and not others.

This post says not to use #pragma with GCC, but I followed the advice and used

void __attribute__((interrupt(PORT3_VECTOR))) PORT3_ISR_HOOK(void) 

but got the error

error: 'PORT3_VECTOR' was not declared in this scope

**Attention** This is a public forum