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.

Ipc_stop and Notify_Dettach

Hi,

 

I am using ipc_1_23_01_26. I see that although we have the API Ipc_stop defined and implemented, it is never exerted in any of the ipc examples within the package. It would be good to have reference code for all the APIs getting defined in the package.

 

Also, although a Notify_attach is defined, a correspoding 'clean-up'  function (say Notify_dettach) is not defined. Any answers for this will be highly appreciated.

Thanks,

Archith

  • Hi Archith,

    Do you have a particular need to detach before the end of the program?  Typically, the examples are one-shot and calling System_abort() or some other exit function at the end is used instead of explicitly detaching.  In my experience, I've noticed that detaching cores can get a little messy since 1 core calling detach breaks the connection -- i.e. if both cores call detach on each other, one will hang because the other already severed the connection.

     

    Unfortunately, I'm not familiar with using the Notify driver, but I see a Notify_disable() function, though the counter part is Notify_restore() rather than Notify_attach().

    My advice is that if you are attaching and detaching to different cores, it would probably be more efficient to just leave the connections open. Functions like Notify_disable() should help prevent undesired communication, and then "cleanup" shouldn't be a major concern since traditional cleanup routines are to deal with memory management units, which the DSPs don't have.


    Hope that helps,

    Tim 

  • Tim,

     

    Thanks for your reply. I have a need to call Notify_attach in the startup of my app and was wondering about the cleanup path for this. Your explanation helped a lot. The app I am working on has been modified to let the slaves run indefinitely.

     

    Regards,

    Archith