2021-06-23 01:49 AM
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
Solved! Go to Solution.
2021-06-23 06:19 AM
You use the address of the slave, which is something you choose in the slave firmware.
2021-06-23 06:19 AM
You use the address of the slave, which is something you choose in the slave firmware.
2021-06-24 04:56 AM
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 !