Tool/software: TI C/C++ Compiler
Hello,
I am using MSP432E401Y with CCS and developing for TIRTOS
I have multiple task having critical region data and I have used Gate Mutex to guard the critical region data
For one of the task, when I make a call to GateMutex_leave, program hangs there and spins indefinitely.
Appreciate any pointers to debug this issue.
I first initialize the mutex and see that it is having proper handle. Then making call to update the critical data where it hangs
Code snippet
void initHumiTempSensor(I2C_Handle hI2C)
{
GateMutex_Struct mutexStruct;
GateMutex_construct(&mutexStruct, NULL);
humiTempMutexHandle = GateMutex_handle(&mutexStruct);
writeDefaultConfig(hI2C);
}
void updateHumidity(uint16_t h)
{
IArg mutexKey;
mutexKey = GateMutex_enter(humiTempMutexHandle);
gHumidity = h;
GateMutex_leave(humiTempMutexHandle, mutexKey);
}
Screen shot of the CCS showing indefinite spin