2020-03-16 11:08 PM
when i write or read it show hal_ok..
if(HAL_I2C_Mem_Write(&hi2c2, 0xA0, 0, 1, eeprom_tx_buff, 1,15) == HAL_OK)
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_RESET);
It shows hal_ok .
if(HAL_I2C_Mem_Read(&hi2c2, 0xA1, 0, 1, eeprom_tx_buff, 1,15) == HAL_OK)
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, GPIO_PIN_SET);
but when i read eeprom_tx_buff[0] it shows 0xff..
Please help me to find the solution