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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Labels:
- Labels:
-
EEPROM devices
-
I2C
-
STM32F3 Series
0 REPLIES 0
