cancel
Showing results for 
Search instead for 
Did you mean: 

Communicate between two STM32 I2C

CCarl.2
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate

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 !