PSoC® Creator™ Auto-complete Does Not Work in PSoC 3 Projects with ISRs - KBA223190

Version: **

 

Question:

When I add ISR routines to a C file in my PSoC 3 project, the auto-complete feature fails to work. Why?

 

Answer:

PSoC Creator uses the Clang compiler to enable the auto-complete feature.
The Keil compiler uses non-standard C syntax for interrupts; this causes Clang to become corrupt. This error only affects PSoC 3 where Keil is used.

Workaround:

Move the CY_ISR to the bottom of the affected C files.

 

Example:

 

CY_ISR_PROTO(Interrupt_Handler);

int main(void)

{

CyGlobalIntEnable; /* Enable global interrupts. */

ISR_StartEx(Interrupt_Handler);

……

}

CY_ISR(Interrupt_Handler)

{

     ……

}