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.

tms320c6678 mailbox.

I want to use mailbox library function.
I check the operation between tasks in single core.
but in multicore environment, the mailbox seemed doesn't work.
can i get some code examples or explanations.

  • Hi Oh Jong,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you shortly on the above query. Thank you for your patience.

  • I looked out the document.
    there are nothing about mailbox in multi core environment on the documents.
    I programmed as follows.


    example code >


    core common :

    Mailbox_Params mbxParams;
    Mailbox_Params_init(&mbxParams);
    mbx = Mailbox_create(sizeof(MsgObj), 50, &mbxParams, NULL);


    core0:
    .
    .
    .
    if (Mailbox_pend( mbx, &msg, TIMEOUT ) == 0 )
    {
    printf("mailbox pend timeout\n");
    }
    .
    .
    .


    core 1:
    .
    .
    .
    if( Mailbox_post(mbx, &msg, TIMEOUT ));
    .
    .
    .


    are there any problems?
  • Please refer below training for supported IPC mechanism in keystone devices,

    Thank you.