Trouble using the GestureKit ULD with the VL53L8CX on a STM32U575
Hello, I am trying to get gesture detection (swipe UP, DOWN, LEFT, RIGHT) with the VL53L8CX working on an STM32U575 running an RTOS. I currently have a X-NUCLEO-53L8A1 plugged into a NUCLEO-U575ZI-Q board running Segger embOS in a C++ project. I have been able to successfully configure and collect ranging data from the ToF sensor by extracting and modifying the example code in en.STSW-IMG040.zip\VL53L8CX_ULD_driver_1.2.1\Examples\ and using HAL_I2C_Mem_Write() and HAL_I2C_Mem_Read() for the implementation for the platform WrXxx() and RdXxx() functions.
However, when I try to use the GestureKit ULD in en.STSW-IMG035_M33.zip and code extracted and modified from the example in en.STSW-IMG035_F401.zip\VL53L5_GestureKit_ULD_1.5.0\Example\Gesture\gestures_example.c:
gesture_library_init_configure() fails because GW_set_frequency() fails with error -6, indicating that the frequency is invalid. The supplied frequency is the default of 20.0 (calculated from 1000.0/Params.RangingPeriod, Params.RangingPeriod is DEFAULT_GESTURE_APP_RANGING_PERIOD = 50ms).
As a quick test, I ignored the those failures and it resulted in a Hard Fault in GW_run() in HT_update_path().
Any suggestions on where to start debugging this issue?
Thank you.
