Skip to main content
NM S.1
Associate
October 1, 2020
Solved

Configuring ASM330LH in Linux

  • October 1, 2020
  • 4 replies
  • 1897 views

Hi,

I am working on ASM330LH in Linux. After enabling ASM drivers, IIO drivers in kernel and adding asm node entry in device tree, the device is getting detected.

target:/sys/bus/iio/devices # ls

iio:device0 iio:device1 iio:device2 iio_sysfs_trigger

But scan_elements and some other entries are missing in the device.

target:/sys/bus/iio/devices/iio:device0 # ls

current_timestamp_clock hwfifo_watermark_max  in_accel_y_scale power

dev      in_accel_scale_available in_accel_z_raw sampling_frequency

events     in_accel_x_raw   in_accel_z_scale sampling_frequency_available

hwfifo_flush   in_accel_x_scale   name    subsystem

hwfifo_watermark  in_accel_y_raw   of_node   uevent 

Can anyone support me in configuring the chip in Linux? Is interrupt configuration required for scan_elements?

Regards,

Naveen

This topic has been closed for replies.
Best answer by NM S.1

Hi @Eleon BORLINI​ 

Thank you for your support. I just got it working after configuring the interrupts in device tree file.

Thanks,

Naveen

4 replies

Eleon BORLINI
ST Employee
October 2, 2020

Hi @NM S.1​ ,

did you used the linux drivers on the Github repository for the ASM330LH sensor? You can find them in the folder STMems_Linux_IIO_drivers...

This just to be sure that there is device configuration missing.

-Eleon

Eleon BORLINI
ST Employee
October 9, 2020

Hi @NM S.1​ ,

did you do some progress in your application?

-Eleon

NM S.1
NM S.1AuthorBest answer
Associate
October 9, 2020

Hi @Eleon BORLINI​ 

Thank you for your support. I just got it working after configuring the interrupts in device tree file.

Thanks,

Naveen

DevM
Associate II
November 5, 2020

@NM S.1 hello!

Would you be so kind as to show me how you set up the interruptions? Thank you anyway!