AnsweredAssumed Answered

I want to write and read data from M24M01-RMN6TP (EEPROM) by using STM32F427ZITx processor, please help me?

Question asked by Pawan Kumar sharma on Apr 10, 2018
Latest reply on Apr 11, 2018 by Pawan Kumar sharma

I DON'T KNOW ADDRESS OF M24M01-RMN6TP slave.

if((HAL_I2C_Master_Transmit(&hi2c1,(devAddess),(uint8_t *)&buffer,3,100))==HAL_OK)
{
HAL_GPIO_TogglePin(GPIOF,GPIO_PIN_4);
HAL_Delay(200);
}
if((HAL_I2C_Master_Receive(&hi2c1,(devAddress),(uint8_t *)&buffer,3,100))==HAL_OK)
{
HAL_GPIO_TogglePin(GPIOF,GPIO_PIN_3);
HAL_Delay(200);
}
}

Outcomes