cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f103 i2c

mahdi zamani
Associate II
Posted on January 25, 2017 at 06:35

hey 

I must connect between two micro controller with

https://community.st.com/tags♯/?tags=i2c

‌

i work with spl 

but i cant work whit i2c at stm32f103c8t6 and stm32f103c8t6 

I do not have to do this sample code .....

can give me sample code ?

please help me ...

thanks

#i2c
5 REPLIES 5
Khouloud GARSI
Lead II
Posted on January 26, 2017 at 09:31

Hello Mahdi,

Please refer to the I2C examples provided when downloading 

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32054.html

 .

Those examples are found under the path below:

STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\I2C

Khouloud.

Posted on January 28, 2017 at 05:44

you sure this link is correct  ?

this fo stm cube ....

Posted on January 28, 2017 at 08:19

Hi Mahdi,

Please refer to the link that I have already sent you and download the software below:

0690X00000606AbQAI.png

Khouloud.

Posted on January 28, 2017 at 13:21

Goto the bottom of the page for the download.

Any specific reason you must use I2C?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on January 29, 2017 at 04:27

yes. my board have i2c output 

i cant use usart and other ....

but i can use 1wire icant work whit 1wire it this not library ...