Skip to main content
Visitor II
August 21, 2018
Question

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

  • August 21, 2018
  • 0 replies
  • 704 views

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

    This topic has been closed for replies.