Skip to main content
JPanc.1
Associate III
April 11, 2019
Solved

DS3231 with STM32F103C8T6 using I2C

  • April 11, 2019
  • 1 reply
  • 818 views

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

This topic has been closed for replies.
Best answer by Vangelis Fortounas

Hi

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

1 reply

Vangelis Fortounas
Associate II
April 12, 2019

Hi

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