2020-05-05 01:04 AM
when trying to call HAL_I2C_Master_Transmit returns HAL_ERROR. If I2C2 starts, then everything works
2020-05-05 02:15 AM
Debug as usually- find out where in Cube the error originated, check hardware connection, pull-ups, observe waveforms on the SDA/SCL pins using oscilloscope and compare them to the working case, etc.
JW