Skip to main content
tcg
Associate III
March 8, 2023
Question

Official library for LIS3DH with FIFO DMA transfer

  • March 8, 2023
  • 2 replies
  • 4395 views

HI, I am trying to develop a application with a accelerometer over 5kHz.

I have some samples of LIS3DH. Does exits any repository of mem senc?

I search in cubemx but is not there.

I can write the library from datasheet but it is a lot of time and it will not be mantain.

do you know if other device in cubemx or in c official library is supported by st?

I am interested on fifo DMA transfer by I2c .

Thanks fot all, tcg

This topic has been closed for replies.

2 replies

WojtekP1
Associate II
March 8, 2023

It's just I2C transfer. Can't you do anything yourself instead of just library&cut&paste?

PS. Works perfect. i used LIS3DH

tcg
tcgAuthor
Associate III
March 9, 2023

yes of course, but as I said, I would prefer to know if there is an official library for maintenance and integration.

Kind regards, tcg

Eleon BORLINI
ST Employee
March 9, 2023

Hi @Tomás Cabeza​ ,

There is a C example for FIFO configuration on LIS3DH on Github, you can find it at this link --> lis3dh_multi_read_fifo.c.

Then once you have the data from the FIFO, you can implement the DMA transfer through STM32 / CubeMX libraries.

-Eleon

tcg
tcgAuthor
Associate III
March 9, 2023

Thanks a lot @Eleon BORLINI​ .

I will try this code tomorrow. I will give you a feedback

Thanks a lot for your fast response, tcg