大家好,我在用CCS调试某一程序时,用step info可是程序有时会跳着走。
比如这段程序:
EALLOW;
PieVectTable.SCITXINTA = &SciATxIsr;
PieVectTable.SCIRXINTA = &SciARxIsr;
PieVectTable.RTOSINT = &STKOV_overflowISR;
PieCtrlRegs.PIEIER9.bit.INTx1 = 1; // Enable sub-group interrupt for SCI-A RX
PieCtrlRegs.PIEIER9.bit.INTx2 = 1; // Enable sub-group interrupt for SCI-A TX
IER = (M_INT9 | M_RTOS | M_INT14); // Enable Group 9 interrupts and RTOSINT and TINT2
// for periodic safety testing
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
EDIS;
运行完
PieVectTable.SCITXINTA = &SciATxIsr;
之后,再按step info 程序会跳到
IER = (M_INT9 | M_RTOS | M_INT14);
然后再回到
PieVectTable.SCIRXINTA = &SciARxIsr;
继续往下执行。
别的地方也有类似的情况,请问大家这是怎么回事,不应该是按顺序一步一步走的吗?