2022-06-13 12:46 PM
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.
2022-06-13 02:37 PM
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.
2022-06-14 10:56 AM
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!