Can you please try the following code snippet:
if (Timer_1ms_INTR_MASK_CC_MATCH == Timer_1ms_GetInterruptSourceMasked()) // Check interrupt source
Timer_1ms_ClearInterrupt(Timer_1ms_INTR_MASK_CC_MATCH); // Clear interrupt and then process Capture interrupt
Timer_1ms_ClearInterrupt(Timer_1ms_INTR_MASK_TC); // Clear interrupt and then process Terminal Count interrupt
Basically not to use "return" in isr body, using "else" instead.
Then compile the code in Creator and export it to IAR by following the steps as given in Help section of PSoC Creator.
It does not work.
I hope you have followed all the steps mentioned in Help Section of Creator for Exporting a PSoC4 project to IAR.
Please share the Creator project.
Hi Ankita ,
I am sure I have followed all the steps. Now I have found that if I define a dummy variable like unsigned char m=0; in CY_ISR(Time1ms_ISR), and it works .
I am sorry that the project is in the customer's computer , so I cann't share it to you .