Using more Task events with embOS V3.82n for Renesas SH2A bug (Sample: 32 events instead of 8 events)

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Using more Task events with embOS V3.82n for Renesas SH2A bug (Sample: 32 events instead of 8 events)

    Hello,

    we use embOS V3.82n for Renesas SH2A source code version.
    For our application we changed default Task events from 8 bit to 32 bit (#define OS_TASK_EVENT OS_U32). Using our custom version with more Task events we found a bug, that appears sometimes we using OS_WaitSingleEventTimed() (Task suspend for timeout time also if the masked event was signaled).

    We located the bug. The function OS_DeactivateTimedV(), calling by OS_WaitSingleEventTimed(), modify the current Task event mask unfortunately with casting the mask:
    • OS_pCurrentTask->EventMask = (OS_U8)v;
    For all who won’t to use more task events with embOS V3.82n for Renesas SH2A change the line to:
    • OS_pCurrentTask->EventMask = (OS_TASK_EVENT)v;
    kind regards
  • Hello,

    unfortunately you are right, there was an issue with 32 bit task events and internal embOS funcion OS_DeactivateTimedV().
    We apologize for any inconvenience caused by this problem.
    This is already fixed in latest embOS version.

    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: segger.com/ticket/

    Or you can contact us via e-mail.