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.

Error: multiple tasks on the same Event object.

Other Parts Discussed in Thread: SYSBIOS, CC3200

Hello,

Running my code, I've got an error related to this BIOS code (ti.sysbios.knl.event):

   /*!
   312         *  Asserted when {@link #pend} is called by multiple tasks on the same
   313         *  Event object.
   314         */
   315        config Assert.Id A_eventInUse = {
   316            msg: "A_eventInUse: Event object already in use."
   317        };

Could-you explain the exact meaning of this error?

And also, could-you tell-me if there is other BIOS object (semaphore, mailbox, etc.) that could not afford multiple tasks access on the same object at the same time (in preemption I mean)?

My setup:


sysbios 6.31.4.27, xdc 3.20.8.88, ccs5.1

 

Simon

  • Simon,

    This means that another Task is already pending on this Event.  Other BIOS objects like semaphore and mailbox (built upon semaphore) can be shared across tasks.

    The SYSBIOS cdoc states "Unlike Semaphores, only a single task can pend on an Event object."

    Judah

  • I found this old thread and I just want to add another condition that can raise the same assertion (this was my case when I found this thread).

    The assertion can raise if you are pending on an event that has not been created yet. This at least in SYSBIOS for CC3200.

    BEst regards