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.

Interrupt casues system crush when JPEG decoding

Hi,

I downloaded JPEG decoder from below link

(C64XPlus Video Codecs Download).  http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Video/index_FDS.html

I compile the sample code then run it on  ccs, it can work ..

I  join the JPEG  decoder into my application, and I enable the interrupt. if JPEG is decoding, It will cause system crush when interrupt occur.

So, I  disable interrupt across JPEG decoding, then it can work.

 Is the JPEG decoder un-interrtptible?

Thanks,

  • Here show my ISR code.

    interrupt void TIMER0_ISR()
    {
     unsigned int temp_amr;
     unsigned int temp_sat;
     const unsigned int iirp = IRP;  /* LOCAL copy of IRP and CSR to be restored upon */
     const unsigned int icsr = CSR;  /* return from this ISR.   */
     const unsigned int itsr = ITSR;


     SAVE_AMR(temp_amr);
     SAVE_SAT(temp_sat);
     

     REG32 DINTC_REG_EVTCLR0 = (1 << 4);   /* Celan IRQ   */

    // do somthing here


     RESTORE_AMR(temp_amr);
     RESTORE_SAT(temp_sat);

     IRP = iirp;
     CSR = icsr;
     ITSR =itsr;

     return;

    }

  • I am not facing any issue when I enable the interrupt and run the JPEG decoder.

    Please let me know which version of codec are you trying with.

     

     

    Regards,

    Poornima

  • Thanks for Poomima's reply.

     I am using JPEG Progressive Support Decoder on C64x+ Version 2.00.

    My platform is dm6446.

    I try enable and disable cache, but the result is the same.

    Is the ISR problem or I miss something?

     

  • Hi,

     

    I tried with the codec version that you have specified and no issue was seen.

    I would suggest you to try enabling interrupts by adding interrupt enabled macros while building the codec library .

     

    Regards,

    Poornima