Hi all,
I'm using TMS320F28335 controlCARD with Peripheral Explorer for a SYS/BIOS application, I was using ePWM modules with no problems at all. Now that I'm trying to use the ADC module alongside ePWM the execution is terminated.
The error is : gged interrupt flagged: intr# 19
xdc.runtime.Error.raise: terminating execution
If I comment the ADC initialization line, the error seems to go away.. I've found similar issues in other posts, nevertheless the presented solutions didn't fixed my problem. Mainly I followed the suggestions to rearrange the memory allocation, but the problem persists.
The ADC initialization code is as follows:
void adc_init(){
//--- Power-up the ADC
AdcRegs.ADCTRL3.all = 0x00EC; // Power-up reference and main ADC
DELAY_US(5000); // Wait 5 ms before using the ADC
//--- Configure the other ADC registers
AdcRegs.ADCREFSEL.bit.REF_SEL = 0; // ADC reference, 0=internal, 1=external
AdcRegs.ADCMAXCONV.all = 0x0000;
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0; // Convert Channel 0
AdcRegs.ADCTRL1.all = 0x0010;
AdcRegs.ADCTRL2.all = 0x0900;
//--- Enable the ADC interrupt
PieCtrlRegs.PIEIER1.bit.INTx6 = 1; // Enable ADCINT in PIE group 1
IER |= 0x0001; // Enable INT1 in IER to enable PIE group
}// end of adc_init()
Any idea of what might be the problem?
Thanks in advance,
Mário