Im using stm32F373c8t6 MCU, i want to interface i2c2 peripheral with MCP7904N(EEPROM IC). i have generated configure file from cubeMx .. This board is tested ok.
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
