Hello,
I found the Bug in Event_pend() API.
Question)
Is my above workaround correct?
If something wrong, could you advise me the correct workaround?
Background)
Since "elem" is local variable, function must not return before release of pointer.
However, return path exactly exist in the source code.
It might overwrites memory in other area.
C:\ti\bios_6_41_00_26\packages\ti\sysbios\knl\Event.c
I also checked Semaphore_pend(), Hwi_disable() and Task_disable().
They must be correct operation, because elem pointer to be set NULL before function returning.
In default source code, I could see sometimes RTOS goes to unexpected operation in Task.c Task_Delet() --> Task_Instance_finalize().
After my workarround, I could see it can operate expectedly.
Best regards, RY