Skip to main content
STai.2
Associate II
December 10, 2020
Solved

HAL_I2C_Master_Transmit always returns != HAL_OK

  • December 10, 2020
  • 4 replies
  • 1879 views

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

In function HAL_I2C_Master_Transmit always returns != HAL_OK

Any ideas why?

This topic has been closed for replies.
Best answer by waclawek.jan

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

JW

4 replies

waclawek.jan
Super User
December 10, 2020

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

JW

STai.2
STai.2Author
Associate II
December 10, 2020

Only reply 0x90

SDA/SCL As attached file

waclawek.jan
waclawek.janBest answer
Super User
December 10, 2020

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
STai.2Author
Associate II
December 14, 2020

Working

Thanks!​