2018-01-05 03:03 PM
2018-01-07 03:03 AM
Hi
gse
,The HAL_I2C_Master_Transmit() function is expecting it's third argument to be a pointer to the data buffer you want to send. So you should have something like &(buffer[2]) instead of buffer[2].
I would recommend that you have a look a the CubeI2C/I2C_TwoBoards_ComPolling/Src/main.c example located inside your Cube library.
Guillaume