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.

How does the doorbell initiate an interrupt?

Other Parts Discussed in Thread: TMS320C6455

i'm working with srio for few weeks,and puzzled by doorbell of srio, the problem is after the master send a doorbell packet to slave, and a "done" response has been received,i mapped event ID 20(defined as rapidIO interrupt 0) to cpu interrupt 4,and associated with a interrupt sevice routine,but it seems that after the doorbell packet arrived(the doorbell interrupt state reg has been set),the interrupt routine didn't work(i.e.the rountine will not be executed),I thouht that there must be some mistakes in my method.so i wonder if anyone have some codes about doorbell and the interrupt ,that will be helpfull!thanks there!

 

BR

monster

doorbell.rar
  • Doorbell interrupts do work well on the DSPs with SRIO. Your best option is to find examples in CSL or the DIOLIB. Search the forum for DIOLIB to find a path to the latest version.

    Also, please search the Wiki pages for information on DIOLIB and on SRIO. Please report back here which pages you found to be useful.

  • My guess at the most likely problem you have is that your interrupt path is not configured correctly.

    Your multiple posts have had different tags, such as C6474 and C6455. This thread has C6455, so it does not belong in this forum, but perhaps this is misleading from your sequence of posts.

    Which DSP are you using? This affects greatly the direction we need to lead you for configuring the interrupts.

  • I have used the DIO library examples to design the doorbell software. The examples are good and easy to understand. I'd recommend using those as Randy suggested.

     

    You can get it from here

    https://gforge.ti.com/gf/project/sriodirectiolib/

    Cheers

  • m sorry about that as i post question these in my first time,so i made a little mistakes in using the functions here.

    and m using tms320c6455 now.

  • Eddie said:

    I have used the DIO library examples to design the doorbell software. The examples are good and easy to understand. I'd recommend using those as Randy suggested.

     

    You can get it from here

    https://gforge.ti.com/gf/project/sriodirectiolib/

    Cheers

    hi Eddie,thanks for your help

  • hi there,

    in the srio document 976c,the anthor says,the rapidio has 8 interrupt destinations,what the interrupt destinations exactly mean?

     

     

    BR

  • and,in c6455,the rapid io interrupt is defined as event 20,21,and 22,I associate the event 20 with cpu interrupt 4 via the function CSL_intcOpen() as always to do,and route all incoming doorbell interrupts to destID 0 by write the doorbell route regs,Associate  hIntcDbell with a isr() using CSL_HookIsr(),write the counter 0 reg...But it doesn't work correctly,the isr() does not be invoked,what am  I miss?\

     

     

    BR

  • Please start with one of the examples from the DIOLIB and make sure you can get that to work. Then modify it to adapt to the differences in your desired application. This is why we have the examples provided for you, to show you the code that works as a starting point for you to complete your project successfully.