Using Atmel Studio 6.2.1563, created an GCC C++ Executable build for ATXMEGA64A3U. Setup timer TCC1 to generate overflow interrupts every 1 millisecond. But compiler seems to ignore the ISR definition.
ISR(TCC1_OVF_vect)
{
Cyclic_Do();
}
In debug mode I see that timer is functioning correctly and OVF interrupt flag is set but I cannot get the control to pass on to my service routine.
IDE message: The breakpoint (the one I set inside ISR function) will not currently be hit. Unable to set requested breakpoint on Target.
Also tried using extern "C" { }
for relevant c files inclusions.
Same issue if I try to use any other timers.
Open for suggestions.
#pragma
to indicate that the function is an ISR and which vector it belongs to. – Thomas Matthews