VL53L8CX with stm32f407vgt6
I am trying to use VL53l8cx with STM32F407VGT6 to find depth . I have previously worked with VL53l5cx and VL53l1cx and was comfortab;e with both of these . I am unable to use this sensor at all as everytime a hard fault arises .
I have been able to use it on Arduino but wasnt able to use it with any st controller or dev board.
The link to the projects is below:
https://drive.google.com/drive/folders/1tsidyGcB8i_SaHW2IKRrtKeJuAWvVb6X?usp=drive_link
https://drive.google.com/drive/folders/17VWmdfnXCuZRXwIgr5QM44ov2SjAzd09?usp=drive_link
This is where the hardfault occurs :

