cancel
Showing results for 
Search instead for 
Did you mean: 

I2C not working with STM32F103C6 and STM32F103C8

RShiv.1
Senior

we have been trying to get the I2C up on both the controller and no responses from anyone the cubeMx issue if I2C is really a problem..Kindly respond as we are trying to get I2C up ..

requesting the experience forum experts to respond.

Thanks

Ravi

63 REPLIES 63
RShiv.1
Senior

Hi,

attached is the code where I am doing all measurement code..also..not getting the value...basically get ready flag itself fails...

regards

Ravi

AScha.3
Chief II

from the ds you posted, i cannot say, what to do better.

now lets stop  to play blind cow . 🙂

so look, what drivers exist and learn/copy from them :

here sensirion gives driver for their sensor:

https://github.com/Sensirion/embedded-i2c-scd30

and many others...(also in c++, rust etc.)

https://github.com/paulvha/scd30

https://github.com/sparkfun/SparkFun_SCD30_Arduino_Library

https://github.com/RequestForCoffee/scd30

https://github.com/adafruit/Adafruit_SCD30

https://github.com/Seeed-Studio/Seeed_SCD30

https://github.com/watterott/CO2-Ampel

https://github.com/sinewave-ee/scd30-rs

the driver by sensirion should show you, what to do.

If you feel a post has answered your question, please click "Accept as Solution".
RShiv.1
Senior

Hi,

Finally worked!!!!!!!!!!!!!

I was actually referring to the first link only last time when I told you about the pattern..

as planned I only replaced/used the same flow...just replace and got working on STM32F103C8..attached is the zip file...this will also work for C6

RShiv.1
Senior

Hi,

Let me be honest in accepting that I am beginner to STM environment and its IDE...but definitely not the experience..In the current domain I was trying to help out from what my team had done.

Agree that name of the file did not change as we were trying out different projects at same time..

sorry if this has caused a concern and would rectify the same...the reason request to help us is raised so that there might not be a single solution to a problem.and would like to take help from those who are experienced ...will keep up the way forum wants ..Thanks

regards

Ravi