I tend to reused code. I have c & h files for USART0-3, Timer and PWM, that I simply add the files to a program knowing that it is tried and tested.
But on a new project I just started, I added the USART0-3 and Timer as usual, but when the init.c calls the Timer init function, I am getting an illegal op exception.
How does one get an illegal op when using Atmel Studio v7? I mean, why would Atmel Studio insert a bad opcode?
Any help would be greatly appreciated.