cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating the STHS34PF80 proximity MEMS sensor using the STMicroelectronics HAL

vrindar
Associate II

Hi,
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!"

Screenshot 2025-07-16 094141.jpg

Could you please guide me on how to add support for the sths34pf80 sensor in the ST HAL or help me resolve this issue?

Thank you.

1 REPLY 1
Federica Bossi
ST Employee

Hi @vrindar ,

For what kind of application are you using STHS34PF80?

Unfortunately, currently, the HAL does not support all sensors, but only a subset reported in the <hal top dir>/core/SensorsSupported.cpp file

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.