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_sendEvent error

Hello:

I am debugging syslink application, where synchronization between ARM and DSP is done using syslink Notify module. In some cases Notify_sendEvent() fails with the following message:

                 notify_shm_drv_sendevent failed! status = 0xfffffff2

                 notify_send_event failed! status = 0xfffffff2

It  happens, when Notify_sendEvent() on the ARM side is called before Notify_registerEvent() on the DSP side.

Is there a way to ensure that Notify_registerEvent() is called before Notify_sendEvent() (other than putting delays), or to make Notify_sendEvent() exit gracefully?

Thanks,

Igor

 

  • In this case Notify_sendEvent() is returning a valid error code: -14, which is "Notify_E_EVTNOTREGISTERED".

    You can try the following pattern to ensure that the sendEvent will succeed

           do {
                 status = Notify_sendEvent (procId, lineId, eventId, payload, waitClearFlag);

           } while ( (status == Notify_E_NOTINITIALIZED)
                  || (status == Notify_E_EVTNOTREGISTERED)
                  || (status == Notify_E_EVTDISABLED));

    specifically, the check for  " Notify_E_EVTNOTREGISTERED" will take care of the synchronization with a Notify_registerEvent().

    Murat