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/LAUNCHXL-F28069M: Program goes to ITRAP after SCIA Rx Interrupt Service Routine

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: MOTORWARE, C2000WARE

Tool/software: Code Composer Studio

Is there any error in the configuration of SCIA interrupt? I'm trying to use SCIA with the 'proj_lab13e'. During step by step debugging it is found that, program control enter into the ISR. After completing the ISR commands (immediately after 'PIE_clearInt()' function) control goes to ITRAP0 location. After that SCIA ISR not triggered while receiving data.

 This is my "HAL_setupSCI()" function;

This is my SCI_RX_ISR() function;

  • You may take a look at the motorware_hal_tutorial.pdf at \ti\motorware\motorware_1_01_00_18\docs\tutorials. And refer to the SCI example in C2000Ware for F28069 as well.

  • Hi Yanming,

    I referred 'hal_tutorial.pdf' and added all the lines for SCIA with interrupt. But while debugging control goes to ITRAP0. I think the problem is related to the priority of ADC interrupt. Because when undo the changes in ADC interrupt priority settings, motor control program works fine. But SCIA is not working. And LED is not toggling ie. control does not enter mainISR(). What should I do? 

    NB: In my arrangement I've connected the launchpad through "XDS 100 Class USB Serial Port" to a terminal software.

    Thank you

  • I've fixed the problem by editing "HAL_acqAdcInt()" function in "hal.h" by replacing

     PIE_clearInt(obj->pieHandle,PIE_GroupNumber_10);  by PIE_clearInt(obj->pieHandle,PIE_GroupNumber_1);

    Thank you

  • Good. Let's know if you have any further questions.