cancel
Showing results for 
Search instead for 
Did you mean: 

I am not reading the address of M24M02 E2prom

ugurozkan52
Associate

Hi,

I am using STM32F4-Discovery. I want to R/W M24M02 E2prom but not reading device address. Added code and datasheet. I tried AT24C256 E2prom other I2C devices by same code and it worked.0693W000003PEAqQAO.png

Thanks.

for(i=0; i<255; i++){
	if(HAL_I2C_IsDeviceReady(&hi2c3, (uint16_t)(i), 2, 100) == HAL_OK ){			   
               HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_13);
	       break;
	}
	HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_14);
	HAL_Delay(25);
}

3 REPLIES 3
dbgarasiya
Senior II

may be hardware issue

ugurozkan52
Associate

Yes problem from HW. We had 3 m24m02 but 2 piece is broken.

Thank you.

dbgarasiya
Senior II

All the best !