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.

【请教】F2812使用电机控制库,使用ADCVALS模块时CPU进入非法中断.



请问,我使用F2812运行电机库,在想使用ADC模块的时候,做如下编程:

ADCVALS   adc1      = ADCVALS_DEFAULTS;

void USER_ADCInit(void)
{
    adc1.init(&adc1);
}

就在我在main()函数里面调用USER_ADCInit()的时候,CPU立即进入非法中断interrupt void ILLEGAL_ISR(void);

请问我的程序是哪里忽略了什么吗?应该如何更改?非常感谢大家的关注。