cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 reading data from sensor through I2C

lamerforum
Associate
Posted on June 15, 2016 at 16:33

Hello there!

 

I have a running CPU and a sensor connected through I2C Interface. Everything is set in terms of hardware. Even the CubeMX configurations (startup codes) are implemented. However, I don't know how to gather data from the sensor.

I wonder if you could help me,

Thanks in advance.

#stm32-i2c #stm32-sensor
1 REPLY 1
Amel NASRI
ST Employee
Posted on June 27, 2016 at 14:07

Hi forum.lamer,

It will be difficult to help you unless you provide more details about your case:

- what is the device you are using?

- did you added the processing functions to CubeMX generated code?

- when debugging, are there any error flag set?

- did you checked the I2C examples available in the Cube packages?

-Mayla-

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.