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.

DSP/BIOS HWI question



hello,

I use DSP/BIOS  HWI_INT4 and  HWI_INT5.  The  ISR  of  each of  them  is  event_4  and   event_5.If   I configure  them using  Dispatcher  ,then  when both of  their  envent  occured  ,it  goes  to   ISR  event_5  both .If   I configure  them without using  Dispatcher,then it  goes  to   ISR  event_4 both .but  when  I  only  use one  of  them,they  goes 

well.

I  don't  know  why? I  need  your  help.  

thank  you!!!

  • Please forgive my incomplete answer, I'd like to give you just an idea.

    Working with DSP/BIOS one cannot just fall into ISR, one have to do extra job. AFAIR, there is HW_ENTER or so macro, which one should call before entering interrupt service routine. Definitely there is complement job on the exit from ISR. When using dispatcher, DSP/BIOS is doing this job for you, so you don't care about these details. However, if you opt to not use dispatcher (why you?), then you have to do this job yourself.

    Again, I don't say this is complete and correct answer, rather suggestion to read again the chapter on HWI in DSP/BIOS manual.

  • Hu ShuShu,

    You definitely want to use the HWI_dispatcher for your interrupts. There is no reason for both interrupts to reach the same ISR, so that means there is something wrong with the configuration that you have done. DSP/BIOS and HWI_dispatcher do very good jobs at calling the correct ISRs.

    Some debug will be required to figure out what is wrong.

    Which DSP are you using?

    Which version of DSP/BIOS are you using?

    Which version of CCS are you using?

    Please confirm that you have the correct function names configured in both HWI_INTx items in the DSP/BIOS Graphical User Interface (GUI).

    Also, please confirm that you are not using the 'interrupt' keyword for your ISRs.

    Regards,
    RandyP