STM32L052K8U + DS3232M I2C not respond
Hi, everybody. I have a problem, can not connect via I2C with RTC. Use a microcontroller and RTC STM32L052K8U DS3232M. Used library HAL. From the watch constantly comes NACK. The wizard sends the correct address (I'm sure of that, but just in case I also ran queries in a loop to addresses from 0x00 to 0xFF). Tightening on the I2C line is (there are resistors on 1K, voltage 3.3 V), on the power bus hours as 3.3 V, no batteries. Timing filed with MSI, and HSI, and PLLCLK (32 MHz). Below are screenshots of the settings. For what reason can the RTC not respond?
Datasheet on the clock:https://datasheets.maximintegrated.com/en/ds/DS3232M.pdf
int main(void){
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_ADC_Init();
MX_I2C1_Init();
MX_USART1_UART_Init();
while (1) {
uint8_t aTxBuffer[8];
HAL_I2C_Master_Receive( &hi2c, (0x68 << 1), (uint8_t*) &aTxBuffer, (uint16_t)б uint32_t) 1000 ) != HAL_OK );
}
}


