Skip to main content
arun rajajinagar
Associate II
May 29, 2019
Question

I2C read issue in STM32L072 MCU

  • May 29, 2019
  • 1 reply
  • 2014 views

Hi Team,

We are using STM32L072 Discovery kit LoRa module for reading CCS811 sensor over I2C peropheral. The Hardware Id (Deivce id) of the sensor is not able to read as the data line does not contain ACK signal at the end. We are using HAL_I2C_Master_Transmit and HAL_I2C_Master_Receive fucntions for I2C communication. Kindly suggest us, how can we proceed to resolve this issue

Thanking you

Arun

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 29, 2019

Why would it not ACK?

Are you using the (0x5A << 1) address?

Is the device otherwise responsive?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
arun rajajinagar
Associate II
May 30, 2019

I am also wondering why not ACK, even there is no 9th clock pulse.

yes, I am using (0x5A<<1) i.e. 0xB4 address.

The device is responsive on other board like arduino.

Tesla DeLorean
Guru
May 30, 2019

Odd. Driving I2C OLED displays on the LoRa DISCO board here.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..