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.

Notify - C6670

Dear support,

I ran the wizard to check "Notify" functionality. I am confused about the event ID and Interrupt being used in the example

Event ID 10 is register in the C6670 manual to be a memory protection fault (section 7.9.1 table 7.38)

I though that interrupt could only be from INT4 to INT15

IsNotify_registerEvent completely separated from the Event mapping and Interrupt used in Hwi_create?

Thanks for the clarification

Aymeric

  • Aymeric,

    Notify event ids are completely separate from the Interrupt event ids or interrupt vector ids.  Int4 to Int15 are considered Interrupt vector ids.

    Notify event ids are used only by the Notify module.  You can register a function for a particular notify event and when another core sends a notification for that event, the registered function will get called.

    Having said that, All notifications typically go through the same Interrupt vector. The default for C6670 is interrupt vector 5.  The interrupt event that is mapped to vector 5 is event 90.
    The interrupt vector id can be specified in the <IPC INSTALL>/packages/ ti/sdo/ipc/family/c647x/NotifySetup module.

    I hope that makes sense.

    Judah

  • Hey Judah,

    Nice clarification.

    My last questions would then be:

    1) If I want to use notify, then, I should leave vector 5 alone as well as event ID 90 (meaning not use it for other purpose), however I can use Notify_MAXEVENTS different event ID

    2) In the example where #define INTERRUPT_LINE  0 is in fact vector 5

    Thanks so much for your answer

    Aymeric


  • Aymeric

    1.  That is correct, leave vector 5 alone or if you had to use vector 5 for something else then you can change it in the .cfg file as per my post earlier about the NotifySetup module.

    2.  Yes, that is correct. INTERRUPT_LINE 0 is using vector 5.  On c6670 we do not have multiple interrupt lines but on other devices some do have more than 1 possible interrupt line.

    Judah