STM32U575xx - I2C slaves do not send ACK resulting in `HAL_I2C_ERROR_AF` error
I have a custom PCB with a STM32U575 for which I generate code using STM32CubeMX.
I am now trying to get I2C to work. Both the I2C1 and I2C2 channels each have one I2C slave. But for both I get the same problem: the slaves do not acknowledge the master messages. The I2C transmission then returns with an error.
For now I am testing with very basic code:
const uint8_t source[1] = {0x00};
HAL_StatusTypeDef status = HAL_I2C_Master_Transmit(&hi2c1, 0x64, source, 1, 1000);
uint32_t errorCode = HAL_I2C_GetError(&hi2c1);Here status is HAL_ERROR and errorCode is HAL_I2C_ERROR_AF.
I put a logic analyzer on the SDA and SCL channels and I can confirm the slave really doesn't send the expected ACK:
In the yellow region the SDA should be pulled low.
The CubeMX config:


Both are set to 'open drain' as they should be.
Just to try I made a little scan over all 128 I2C addresses, but I don't get an acknowledgement anywhere. I've also tried about all possible I2C configurations, but to no avail.
It's odd both slaves have the same effects, on different channels.
Thanks for any advice!

