Skip to main content
Explorer
July 17, 2025
Question

Integrating the STHS34PF80 proximity MEMS sensor using the STMicroelectronics HAL

  • July 17, 2025
  • 1 reply
  • 372 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    July 17, 2025

    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

    vrindarAuthor
    Explorer
    July 18, 2025

    Hi Federica Bossi,

    Thank you for the response.

    We have successfully 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?