cancel
Showing results for 
Search instead for 
Did you mean: 

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

JBonn
Associate III
 
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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.
[cid:image001.png@01D80316.0BD80560]