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.

CCS/TMS320F28035: ILLEGAL_ISR() at DSP2803x_Defaultlsr.c:95 0x3F666B

Part Number: TMS320F28035

Tool/software: Code Composer Studio

Hallo,

I new in Embedded programming. I am using ADC, Epwm and Ecap modules in programming.  But when I am initializing the ADC i am getting error ILLEGAL_ISR() at DSP2803x_Defaultlsr.c:95 0x3F666B.

I think there is some problem with using F28035.cmd file from control suit. Can someone please tell me  the solution ?

  • I suspect you're missing a couple lines to copy ramfuncs from flash to RAM, so when the CPU tries to fetch the code from RAM (probably the DSP28x_usDelay function), it's getting invalid instructions.

    Add this line to your code--probably after InitSysCtrl(). Definitely before InitAdc().

        memcpy((uint16_t *)&RamfuncsRunStart,(uint16_t *)&RamfuncsLoadStart, 
                (unsigned long)&RamfuncsLoadSize);

    Whitney