Skip to main content
JBonn
Associate III
April 29, 2023
Solved

Is there an I2C example for the L4 that uses the Cube_MX for initialization?

  • April 29, 2023
  • 1 reply
  • 1751 views

Trying to interface with the LSM303AH eCOM.

This topic has been closed for replies.
Best answer by Foued_KH

Hello @JBonn​ ,

For I2C communication with LSM303AH ,you need to configure your I2C using STM32CubeMX then you can generate the code and manage your communication using HAL library .

I recommend you follow this wiki for more details about the MX configuration : Getting started with I2C - stm32mcu

Hope my answer helped you!

Foued

1 reply

Foued_KH
Foued_KHBest answer
ST Employee
May 3, 2023

Hello @JBonn​ ,

For I2C communication with LSM303AH ,you need to configure your I2C using STM32CubeMX then you can generate the code and manage your communication using HAL library .

I recommend you follow this wiki for more details about the MX configuration : Getting started with I2C - stm32mcu

Hope my answer helped you!

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JBonn
JBonnAuthor
Associate III
May 3, 2023
Foued,
Thanks. You answered my question.
Found example that directly applied to my case.
Jerry Bonner
Foued_KH
ST Employee
May 4, 2023

If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be helpful for Community users to find this solution faster. 

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.