cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring ASM330LH in Linux

NM S.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
NM S.1
Associate

Hi @Eleon BORLINI​ 

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

Thanks,

Naveen

View solution in original post

4 REPLIES 4
Eleon BORLINI
ST Employee

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

Hi @NM S.1​ ,

did you do some progress in your application?

-Eleon

NM S.1
Associate

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

@NM S.1 hello!

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