Skip to main content
NMuth
Associate
Sep 3, 2018 7:08 AM UTC
Solved

issue with the I2C which is not reading the data

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.
Imen.DBest answer
ST Technical Moderator
Sep 3, 2018 9:34 AM UTC

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

3 replies

Imen.DBest answer
ST Technical Moderator
Sep 3, 2018 9:34 AM UTC

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
Sep 4, 2018 1:32 AM UTC

Did you get it working ?

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

NMuth
NMuthAuthor
Associate
Sep 24, 2018 8:09 AM UTC

thanks for the reply.

I got it working

the issue is that i gave the address wrongly..