使用 Atmel Studio 6.2.1563,为 ATXMEGA64A3U 创建了一个 GCC C++ 可执行文件。设置定时器 TCC1 每 1 毫秒产生一次溢出中断。但编译器似乎忽略了 ISR 定义。
ISR(TCC1_OVF_vect)
{
Cyclic_Do();
}
在调试模式下,我看到定时器运行正常,并且设置了 OVF 中断标志,但我无法将控制权传递给我的服务程序。
IDE消息:The breakpoint (the one I set inside ISR function) will not currently be hit. Unable to set requested breakpoint on Target.
还尝试using extern "C" { }
了相关的 c 文件包含。如果我尝试使用任何其他计时器,也会出现同样的问题。
打开以征求建议。