2020-08-12 11:43 PM
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.
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);
}
2020-08-13 08:40 PM
may be hardware issue
2020-08-14 01:52 AM
Yes problem from HW. We had 3 m24m02 but 2 piece is broken.
Thank you.
2020-08-17 12:11 AM
All the best !