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.

debug-problem-f28335



when i tried a code i faced the following problem..can ny1 help me in this regard.

 

 

fatal error: file "C:/tidcs/c28/IQmath/v15a/lib/IQmath.lib<IQ24cos.obj>"
   specifies ISA revision "C2800", which is not compatible with ISA revision
   "C28FPU32" specified in a previous file or on the command line

>> Compilation failure
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [lab17.out] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

 

The part of program where i edited is given below.

 

 

interrupt void adc_isr(void)
{
    static Uint16 index=0;                             // index into ADC buffers
    _iq sum,cos_sum,sin_sum,dc_comp,cos_avg,sin_avg,mag,ratio;
    AdcBuf[index] = _IQmpy(AdcFsVoltage, _IQ16toIQ((_iq)AdcRegs.ADCRESULT0));
    sum = sum+AdcBuf[index];
    cos_sum = cos_sum+_IQmpy(AdcBuf[index],_IQcos(_IQmpy(var,index)));
    sin_sum = sin_sum+_IQmpy(AdcBuf[index],_IQsin(_IQmpy(var,index)));
   
   
    /*** Call the filter function ***/
    xBuffer[0] = AdcBuf[index];                // Add the new entry to the delay chain
    AdcBufFiltered[index] = IQssfir(xBuffer, coeffs, 5);
   
    index++;                                    // Increment the index

    if(index == AdcBufLen)
    {
        index = 0;            // Rewind the pointer to beginning
    //n = _iq(_IQdiv(1.0,32.0));
    dc_comp = _IQmpy(sum,N);
    cos_avg = _IQmpy(cos_sum,N);
    sin_avg = _IQmpy(sin_sum,N);
    mag = _IQmag(cos_avg,sin_avg);
    ratio = _IQdiv(mag,dc_comp);
   
    if (ratio < _IQmpy(dc_comp,_IQ(0.1)))
     GpioDataRegs.GPASET.bit.GPIO9 = 1;
    else GpioDataRegs.GPACLEAR.bit.GPIO9 = 1;
    if (ratio > _IQmpy(dc_comp,_IQ(0.55)))
    GpioDataRegs.GPBSET.bit.GPIO61 = 1;
    else GpioDataRegs.GPBCLEAR.bit.GPIO61 = 1;
    if (_IQmpy(dc_comp,_IQ(0.1)) >= ratio >= _IQmpy(dc_comp,_IQ(0.55)))
    GpioDataRegs.GPBSET.bit.GPIO62 = 1;//
    else GpioDataRegs.GPBCLEAR.bit.GPIO62 = 1;//
   
   
    // Reinitialize for next ADC sequence
      AdcRegs.ADCTRL2.bit.RST_SEQ1 = 1;       // Reset SEQ1
      AdcRegs.ADCST.bit.INT_SEQ1_CLR = 1;        // Clear INT SEQ1 bit
      PieCtrlRegs.PIEACK.all = 1;               // Acknowledge interrupt to PIE
}