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.

DM3725 Arm IRQ interrupt problem with continuous data reading

hi all,

 i implemented arm interrupt generation code in ccs 5.1, but if i continuously receive data through interrupt it stuck at data abort or prefetch abort how can i resolve my issue?? i am using UART3_IRQ interrupt. Same hang problem faced in x-load code also in linux .... plz help me..

thanks in advance

  • Hi Paddu,

    Could you add some log messages which could be useful for investigating of the issue.

    BR
    Tsvetolin Shulev
  • hi Shulev,

    whenever it get data abort or prefetch abort i handled data abort and prefetch abort in that wehn it goes to where it stuck at that instruction it seems that INTCPS_SIR_IRQ register address is corrupted. Means when i debug code in CCS, after data abort is occur in data abort returns to where it stuck at that instruction INTCPS_SIR_IRQ register address is copied to some core registers like R12 , so when we put cursor at that asm instructio nR12 is shows some wrong address. So if it reads from wrong address it went again to undefined or something else.. i am giving the my interrupt handler code see once and tell me if any bug..

    #define INTCPS_SIR_IRQ 0x48200040
    __interrupt void Irq_iSR(){

    // asm(" STMFD SP!, {R0-R12, LR}");

    asm(" MRS R11, SPSR");

    if((INREGL(INTCPS_SIR_IRQ)) == 74){ //UART3_IRQ ,M_IRQ 74
    Char = *RHR_REG;

    UARTRxBuf[WrCnt_UART++]= Char;
    WrCnt_UART&= 0x3FF;
    }

    OUTREGL(0x01,0x48200048);//INTCPS_CONTROL

    // asm(" MOV R0, #0");
    // asm(" MCR P15, #0, R0, C7, C10, #4");

    asm(" MSR SPSR, R11");
    // asm(" LDMFD SP!, {R0-R12, LR}");

    // asm(" MRS R11,SPSR");
    asm(" MSR CPSR_c, R11");
    asm(" MOV PC, LR");

    }

    thanks

    BR

    padmaja