cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-53L1A1 SimpleRangingExamples using mutex in free RTOS environement

Professional
Senior

I try to add mutex in the X-CUBE-53L1A1 SimpleRangingExamples

I have defined

#define VL53L1_GetI2cBus(...) CO_Mutex_get() in vl53l1_platform.c

#define XNUCLEO53L1A1_GetI2cBus(...) CO_Mutex_get() inX-NUCLEO-53L1A1.c

and also for PutI2cBus

But the drivers then hangs in VL53L1_WaitValueMaskEx has if it couldn't get the mutex.

I have count, the number of release of mutex is OK.

How can we integrate this example in FreeRTOS environement ?

Best regards

thanks for any suport

0 REPLIES 0