SMART Wireless Computing - Forums

A discussion forum dedicated to SMART Wireless Computing community to discuss various topics about features and issues.

lsm330 acceleremeter and gyroscope

Questions and discussions related to Inforce 6540

by lperezbustos » Wed Apr 18, 2018 4:54 am

Hello, I'm working with a personalized yocto image based on the kernel that you provide. The inforce hardware reference manual shows that the onboard LSM330 ACCEL/GYRO is connected to the BLSP8 (GPIO53, GPIO54). I activated CONFIG_IIO_ST_ACCEL_3AXIS and CONFIG_IIO_ST_GYRO_3AXIS from .config file and I added the i2c port on BLSP8 in the device tree with the correspondent node for the accelerometer and the gyroscope.

is sure that the LSM330 is on the BLSP8 (Physical Base Address: 0xF9964000)?
Posts: 2
Joined: Thu Mar 22, 2018 1:04 am

by ashwin » Mon Apr 23, 2018 11:13 pm


Yes BLSP8_0(SCL) and BLSP8_1(SDA) are connected to the LSM330 sensors.

The base address is 0xF9964000 BSLP2QUP1

Best Regards,
Posts: 66
Joined: Wed Jul 01, 2015 10:07 pm

by lperezbustos » Fri Apr 27, 2018 2:27 am

I edited the kernel and know I have an I2C bus that points to BLSP8 (0xf9964000) where I also added the sensor in the device tree with its slave address. The problem is that the sensor is not being recognized by the kernel and I can't bind the correspondent IIO driver to the device.

write error > No such device

To try a different approach, I tested the android image (Lollipop) and the sensors are working right with the test app using the corresponding port.

What I found out is that the voltage level at s5 (sensor switch) never reach the 1.8V that actually is reaching with Android, it gets stuck in 0.7V.
Posts: 2
Joined: Thu Mar 22, 2018 1:04 am

Return to INFORCE 6540™


Contact Us.