2025-07-29 10:35 PM
Hi,
I am follow up on the query i am posted "https://community.st.com/t5/mems-sensors/integrating-the-sths34pf80-proximity-mems-sensor-using-the/td-p/823236".
I am integrating the STHS34PF80 proximity MEMS sensor using the STMicroelectronics HAL from the following repository:
https://github.com/STMicroelectronics/st-mems-android-linux-sensors-hal/tree/master
However, when I run the HAL binary, I encounter the following error:
"root@imx8mp-lpddr4-evk:/st-mems-android-linux-sensors-hal/linux/build# ./stm-sensors-linux
failed to open config file [/etc/stm-sensors-hal/config], using defaults
found 5 IIO devices available under /sys/bus/iio/devices
sths34pf80_tmotion: IIO device not supported by sensorHAL
sths34pf80_tobject_comp: IIO device not supported by sensorHAL
sths34pf80_tpresence: IIO device not supported by sensorHAL
sths34pf80_tambshock: IIO device not supported by sensorHAL
sths34pf80_tobjamb: IIO device not supported by sensorHAL
No IIO sensors found!
no sensors available!"
As you mentioned in the reply, sensor supported are listed in the <hal top dir>/core/SensorsSupported.cpp file. The STHS34PF80 is not listed in the SensorsSupported.cpp file. But I was searching through the GitHub repo and found the following. The STHS34PF80 is listed under iio and also the drivers. Are we missing anything in our configs?
What are the steps required for adding the driver files into the SensorsSupported.cpp file?
We have integrated the sensor, and the integration process went smoothly. However, while trying to read proximity values from the sensor using Linux on the NXP i.MX8MP, we are consistently receiving a value of 0. Additionally, no activity is observed on the trigger.
I have attached the files we used. Could you please help with this?
Thank you,
Vrinda R