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.
在跑eqep_ex2_pos_speed.c这个例程时,能够正常运行,但我把相关的eqep_ex2_calculation.c中的PosSpeed_calculate()函数放进我自己的项目中debug时就会不成功,报错Break at address "0x3fe493" with no debug information available, or outside of program code.
代码如下:把计算函数放在了ADC中断里,怀疑是因为中断嵌套导致函数计算太复杂?
//
// adcA1_ISR —— ADCA Interrupt 1 ISR
//
interrupt void adcA1_ISR(void)
{
// adcAResults为Digital representation of the voltageon pin Ao
adcAResults = ADC_readResult(ADCARESULT_BASE,ADC_SOC_NUMBERO);
adcAResults1 = ADC_readResult(ADCBRESULT_BASE,ADC_SOC_NUMBERO);
adcAResults2 = ADC_readResult(ADCCRESULT_BASE,ADC_SOC_NUMBERO);
Pos_calculate(&p);
theta = p.thetaElec;
//Clear INT flag
ADC_clearInterruptStatus(ADCA_BASE,ADC_INT_NUMBER1);
//Check if overflow has occurred
if(true == ADC_getInterruptOverflowStatus (ADCA_BASE,ADC_INT_NUMBER1))
{
ADC_clearInterruptOverflowStatus(ADCA_BASE,ADC_INT_NUMBER1);
ADC_clearInterruptstatus (ADCA_BASE,ADC_INT_NUMBER1);
}
// Acknowledge interrupt group
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP1);
}