[SOLVED] inter-thread messaging problem with OS_PutMail

  • Hi, we're porting code from a CMSIS-RTOS environment to embOS ver 4 and are having trouble with inter-thread messaging.
    We've put in place code to perform the same as the code example at this link, section "Code Example".
    That code essentially demonstrates how two threads can send a mail message via osMailPut (Thread 1) to another (Thread 2) and intercept the message via osMailGet and act upon it.
    Do you have a code snippet to do the same using embOS APIs, showing the complete workflow just like the link above?
    All our attempts to do the exact same have failed so far, where OS_PutMail generates a runtime exception.
    Thanks!
    Damien.

  • Dear Damien,

    do you already have an embOS license?
    Why do you use embOS V4? The latest embOS version is 5.18.0.

    Would it be possible to share your code? You don't need to publish it here, but you can also contact us directly:
    https://www.segger.com/doc/UM01001_embOS.html#Support

    A basic embOS mailbox sample application OS_Mailboxes.c can be found in every BSP in the embOS shipment:

    However, if necessary, I can also create a sample application like the CMSIS sample application.


    Best regards,
    Til

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!