尊敬的 TI 您好、
我对使用 LaunchXL 焊盘中使用的 xdsv2进行调试有疑问、
我想说、当我对中断进行三角测量并继续执行步骤(F5)时、即使我按 F5超过10次、并且我添加了"ERTM"、也不会触发中断。
只有当我在中断服务程序中按 F8并断开 PC 时、才会触发中断。
这是因为需要14个周期还是因为仿真器问题、我必须激活调试寄存器中的某些内容吗?
谢谢你
S.Tarik
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
尊敬的 TI 您好、
我对使用 LaunchXL 焊盘中使用的 xdsv2进行调试有疑问、
我想说、当我对中断进行三角测量并继续执行步骤(F5)时、即使我按 F5超过10次、并且我添加了"ERTM"、也不会触发中断。
只有当我在中断服务程序中按 F8并断开 PC 时、才会触发中断。
这是因为需要14个周期还是因为仿真器问题、我必须激活调试寄存器中的某些内容吗?
谢谢你
S.Tarik
您好!
中断由用户中断触发。
__interrupt void USER1_ISR(void) // User Defined trap 1
{
volatile Uint16 i;
PieCtrlRegs.PIEIFR1.all = 0x0040;
EINT;
//
// Insert ISR Code here.......
//
//PieCtrlRegs.PIEIFR1.all = 0x00FF;
for(i = 1; i <= 10; i++) {
__asm(" NOP");
}
ISRTrace[ISRTraceIndex] = 0xCA11;
ISRTraceIndex++;
for(i = 1; i <= 10; i++) {
__asm(" NOP");
}
ISRTrace[ISRTraceIndex] = 0xCA12;
ISRTraceIndex++;
for(i = 1; i <= 10; i++) {
__asm(" NOP");
}
__asm(" NOP");
ISRTrace[ISRTraceIndex] = 0xCA13;
ISRTraceIndex++;
for(i = 1; i <= 10; i++) {
__asm(" NOP");
}
ISRTrace[ISRTraceIndex] = 0xCA14;
ISRTraceIndex++;
for(i = 1; i <= 10; i++) {
__asm(" NOP");
}
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
// __asm (" ESTOP0");
// for(;;);
//
// Add ISR to Trace
//
ISRTrace[ISRTraceIndex] = 0xCA15;
ISRTraceIndex++;
}