cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a C library for MMA8452 working with STM32L476RG?

OFati.1
Associate II

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.

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..