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.

I get an assert error when calling Mailbox_create()

Other Parts Discussed in Thread: SYSBIOS

I get an assert error when calling Mailbox_create():

 

ti.sysbios.knl.Semaphore: line 74: assertion failure: A_noEvents: The Event.supportsEvents flag is disabled.
xdc.runtime.Error.raise: terminating execution

I'm using a C6748 and SYS/BIOS6.

 

But if I don't setup any readerEvent on the mailbox it works.

 

What is going on?

 

 

 

 

  • Marko,

    You probably do not have the Event module configured for use in your system. To save code size and RAM usage in objects, the Event module is optional (configurable). You can enable it using the GUI editor in CCS or add it directly in the .cfg using your favorite code editor:

    var Event = xdc.useModule('ti.sysbios.knl.Event');
    Semaphore.supportsEvents = true;

    Note the second line - you have tell the Semaphore module to support Events, too.

    Mark