Hello eveyone,
Code Composer Version: 5.5.0.00077
MCSDK Version: 02.01.02.06
NDK Version: 2.20
We have an application running on an evm c6678 evaluation board which uses a socket to connect via TCP to a server application running on a windows box. If the server program is running and the connection is successful, the system is able to run with no issue's. However, if the application is not running then the system will loop around continuing to try to get a connection and will do so successfully for between 20 minutes to an hour. Unfortunately, it will inevitably raise the error:
ti.sysbios.gates.GateMutex: line 97: assertion failure: A_badContext: bad calling context. See GateMutex API doc for details.
xdc.runtime.Error.raise: terminating execution
It is possible for us to implement a watchdog timer to try and circumvent this but since we haven't discovered what is causing the problem I'm afraid it will only be a temporary bandaid to a deeper issue.
I originally suspected there might be some leaks in the code, but after some investigation it seems fairly clear that this is not the case.
Oh, also, this is a blocking socket - if that's relevant.
This is my first time posting with the e2e community so please let me know if you need more information from me.
Regards,
Stephen