Skip to main content
CCarl.2
Associate
June 23, 2021
Solved

Communicate between two STM32 I2C

Hi,

My objecive is to be able to communicate between two STM32FR302R8 thanks to I2C protocol.

I've seen a code that should be used but I don't know which is the adress that I have to write:

HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size,uint32_t Timeout)

Can someone help me ?

Thanks

Have a nice day

This topic has been closed for replies.
TDK
TDKBest answer
June 23, 2021

You use the address of the slave, which is something you choose in the slave firmware.

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

2 replies

TDK
TDKBest answer
June 23, 2021

You use the address of the slave, which is something you choose in the slave firmware.

"If you feel a post has answered your question, please click ""Accept as Solution""."
CCarl.2
CCarl.2Author
Associate
June 24, 2021

ohhh, you've just fashed a light in my head. I was looking for an address in the datasheet but it's not.

Thank you so much !