Skip to main content
PRAMU.11
Associate
July 1, 2021
Question

I am interfacing this lsm9ds1 MEMS sensor with the STM32F429zit6 nucleo board. LSM9DS1 IS NOT Responding I am using ST lsm9ds1 drivers on github using data polling code sensor is not responding, anyone tell me where the problem occures?

..

This topic has been closed for replies.

12 replies

Eleon BORLINI
ST Employee
July 1, 2021

Hi @PRAMU.1​ ,

are you using SPI or I2C interface for the communication?

And are you able to read the chip ID (0Fh register)?

It would be helpful if you could share also the scope of the digital pattern working on your application.

-Eleon

PRAMU.11
PRAMU.11Author
Associate
July 2, 2021

it returns always 0x00 only

PRAMU.11
PRAMU.11Author
Associate
July 1, 2021

im using i2c interface

PRAMU.11
PRAMU.11Author
Associate
July 1, 2021

0693W00000BcYtPQAV.jpg

PRAMU.11
PRAMU.11Author
Associate
July 1, 2021

continuesly looping never get out of the loop.

Eleon BORLINI
ST Employee
July 1, 2021

Hi @PRAMU.1​ ,

but are you able to receive a correct acknowledge signal from the I2C communication?

Can you share the scope digital pattern of the communication?

-Eleon

PRAMU.11
PRAMU.11Author
Associate
July 2, 2021

how can i configure platform write and read in application code whre we are included that functions.

PRAMU.11
PRAMU.11Author
Associate
July 2, 2021

im not mention platform write and read in main.c is this mention or not?

PRAMU.11
PRAMU.11Author
Associate
July 2, 2021

/** Please note that is MANDATORY: return 0 -> no Error.**/

int32_t platform_write(void *handle, uint8_t Reg, uint8_t *Bufp, uint16_t len)

int32_t platform_read(void *handle, uint8_t Reg, uint8_t *Bufp, uint16_t len)

where can i write these functions

Eleon BORLINI
ST Employee
July 7, 2021

Hi @PRAMU.1​ ,

In order to integrate the, you can refer to the dedicated section in the readme file of Github homepage, at the paragraph:

0693W00000Bd5pGQAR.pngDid you already try this procedure?

-Eleon

ABin .1
Associate
September 7, 2021

Hello Mr Borlini, if I use custom board of STM32L083, can I use these LSM9DS1 .c & .h file driver?

-Anuar

Eleon BORLINI
ST Employee
September 7, 2021

Hi Anuar @ABin .1​ ,

yes you can, you have just to take care of the specific platform in terms of the pin configuration and the proper peripheral (e.g SPI) initialization.

However, next time please create a new post for a new question ;)

-Eleon