Skip to main content
Visitor II
May 6, 2020
Question

Is there a C library for MMA8452 working with STM32L476RG?

  • May 6, 2020
  • 1 reply
  • 1005 views

In fact, I want to read the real time data MMA8452 working with STM32L476RG, I need to know if there is a C library that I can use in this case, if not, how i can develop a C library for this accelerometer giving the technical sheet.

    This topic has been closed for replies.

    1 reply

    Graduate II
    May 6, 2020

    It is not an ST devices, so doubt they're going to provide technical support on it. The interwebs likely have something close enough that you can adapt the hardware abstraction layer of.

    For I2C on the STM32, perhaps avail yourself of the CubeL4 examples? Porting to your particular application

    STM32Cube_FW_L4_V1.15.1\Projects\NUCLEO-L476RG\Examples\I2C\I2C_TwoBoards_ComPolling

    https://github.com/sparkfun/MMA8452_Accelerometer

    An Embedded Developer should be able to digest the technical documentation for the registers, sensor and connectivity of the device. Your local ST sales contact might have a list of consultants/contractors with competence with STM32 parts and accelerometers, etc.