cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_Master_Transmit always returns != HAL_OK

STai.2
Associate II

I am using STM32 Cube MX to generate 32L443RCTx code.

In function HAL_I2C_Master_Transmit always returns != HAL_OK

Any ideas why?

1 ACCEPTED SOLUTION

Accepted Solutions

There's a NAK at the end, i.e. the slave does not answer (it's not present, not connected, not working...)

JW

View solution in original post

4 REPLIES 4

And what is on SDA/SCL when observed using oscilloscope/LA?

JW

STai.2
Associate II

Only reply 0x90

SDA/SCL As attached file

There's a NAK at the end, i.e. the slave does not answer (it's not present, not connected, not working...)

JW

STai.2
Associate II

Working

Thanks!​