cancel
Showing results for 
Search instead for 
Did you mean: 

DS3231 with STM32F103C8T6 using I2C

JPanc.1
Associate II

I was unable to retrive data from RTC DS3231 using I2C.

And I am perfectly getting from ADXl325 accelerometer using I2C.

RTC DS3231 works perfectly with arduino mega 2560 but problem getting data for STM32F103C8T6.

Dont know why?

I am using STM32CubeMX and TrueSTUDIO

1 ACCEPTED SOLUTION

Accepted Solutions

Hi

HAL I2C relative functions, require the Slave Address of DS3231 to be shifted one bit left to work.

View solution in original post

1 REPLY 1

Hi

HAL I2C relative functions, require the Slave Address of DS3231 to be shifted one bit left to work.