Skip to main content
JBonn
Associate III
January 5, 2022
Solved

How to tell the CubeMX an LSM303AH is connected to an I2C

  • January 5, 2022
  • 1 reply
  • 738 views

..

This topic has been closed for replies.
Best answer by Peter BENSCH

This is essentially the same question you asked here.

CubeMX only cares about the configuration of the I2C port and doesn't care which sensor you connect there, because that is programmed later in the application program (typically in main.c).

As mentioned by @Imen DAHMEN​ you can find examples for I2C in the firmware repository. Drivers and examples for sensors can be found in the Github repository already mentioned by @Community memberurer​.

Regards

/Peter

1 reply

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
January 6, 2022

This is essentially the same question you asked here.

CubeMX only cares about the configuration of the I2C port and doesn't care which sensor you connect there, because that is programmed later in the application program (typically in main.c).

As mentioned by @Imen DAHMEN​ you can find examples for I2C in the firmware repository. Drivers and examples for sensors can be found in the Github repository already mentioned by @Community memberurer​.

Regards

/Peter

In order 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
January 6, 2022
[cid:image001.png@01D80316.0BD80560]