I am using the latest version Atmel Studio Version 7.0.1006
With the build in GCC compiler i try to use interrupts of two timers, i used creation of Gcc C executable code has GCC C++ executable code, with the same results.
When timer0 is defined alone, it is ok, the port PB0 is toggled every 50ms.
But from the moment i start Timer2, by setting the prescallers, it appears that it influences the puls on PB0, every 50ms i see a 10Us puls.
Although i have not even written an interrupt routine to handel Timer2 compare match interrupt.
If i include a interrupt routine to toggle PB4 on Timer2 compare match. Then i can not start the program in debug mode. It always stops after a run command.
In disassembed listing, in interrupt jump table, the two interrupts jump to the correct interrupt routines.
I am new with GCC. Is it something i am missing in the setup of GCC ?
Thanks for your advice,