cancel
Showing results for 
Search instead for 
Did you mean: 

I need help with I2C between a Arduino board and a STM32F103

NNams.1
Associate

I have been trying to make the Arduino talk to the STM32 via I2C but i just cant get it to work. The STM has to be in a form of a slave mode but i can't seem to figure it out. So if there is anyone who could help me or give me a form of an example from the STM32 side that would mean a lot.

2 REPLIES 2

I seem to recall this have both MASTER and SLAVE examples

STM32Cube_FW_F1_V1.8.4\Projects\STM3210E_EVAL\Examples\I2C\I2C_TwoBoards_ComPolling

On Arduino side where the Slave Address is ADDRESS, it will be (ADDRESS << 1) on the STM32, as it describes the upper 7-bits of the bytes.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
NNams.1
Associate

Thank you for your answer. I have been taking a look at it and haven't totally figured it out yet but i will keep trying!