2025-03-25 7:35 AM - edited 2025-03-25 7:40 AM
Hi @John E KVAM ,
I am planning to interface stmvl53l8cx with cypress cx3 controller. I did not find any Register Reference for it to access the TOF registers. Instead I find en.STSW-IMG042.zip SDK for raspberry pi . Should I port this SDK to my microcontroller ? Is there any protocol document for communicating with the MCU inside stmvl53l8cx ?
Can I have a simpler c program for communicating with the MCU inside stmvl53l8cx , instead of having kernel and user space layers ?
Regards,
Vikaash.K.B
2025-03-25 8:07 AM
The VL53L8CX is a pretty complex sensor. During the Init phase, the host downloads some 80K of firmware. So creating a driver much smaller than the ones we supply is not realistic.
We have two Linux drivers. The kernel driver is for those designs where normal users simply cannot be granted access to the I2C bus. (Think cell phones. One simply cannot allow downloadable apps access to the eeproms and other stuff connected to the I2C bus.) In this arrangement the application asks the kernel to access the I2c bus and return the result.
But if your project does not involve downloadable apps, the User-level driver is easier to use. In this driver, the user code simply communicates with the sensor over I2C direct reads and writes.
please note that one uses either the kernel code or the user code. You don't need both.
I'd start with the ST driver you choose and get your project running. I'm pretty sure that code is about as efficient as we can make it.
- john