Skip to main content
NMuth
Associate
September 3, 2018
Solved

issue with the I2C which is not reading the data

  • September 3, 2018
  • 3 replies
  • 1171 views

i am using the STM32L4 Nucleo board L4R5ZI .

i am trying to configure i2c to read time from the RTC DS3231.but i am getting only data as zero.

what may be the issue.

i have attached the code.

kindly help..

This topic has been closed for replies.
Best answer by Imen.D

Hello @NMuth​ ,

I recommend you to start from a working I2C example, check configuration and implementation, then make updates depending on your application case: STM32Cube_FW_L4_V1.12.0\Projects\NUCLEO-L4R5ZI\Examples\I2C

With Regards,

Imen

3 replies

Imen.DBest answer
ST Technical Moderator
September 3, 2018

Hello @NMuth​ ,

I recommend you to start from a working I2C example, check configuration and implementation, then make updates depending on your application case: STM32Cube_FW_L4_V1.12.0\Projects\NUCLEO-L4R5ZI\Examples\I2C

With Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
T J
Senior III
September 4, 2018

Did you get it working ?

first glance the Address for Read is different to Write...

NMuth
NMuthAuthor
Associate
September 24, 2018

thanks for the reply.

I got it working

the issue is that i gave the address wrongly..