cancel
Showing results for 
Search instead for 
Did you mean: 

issue with the I2C which is not reading the data

NMuth
Associate II

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..

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
T J
Lead

Did you get it working ?

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

NMuth
Associate II

thanks for the reply.

I got it working

the issue is that i gave the address wrongly..