how to communicate with M24LR04 via I2c
Im sending the "Get System Info" command to check receiving data correctly from the M24LR04 via I2C.
The packet that I sending is {0x00 (request flags), 0x2B(get system info command), 0xF6 (CRC LSB), 0x75 (CRC MSB) }
the response that I get is 0xFF for all.
I'm using the STM32F031 MCU and keil IDE
also using the functions HAL_I2C_Master_Transmit / HAL_I2C_Master_Receive from the stm32f0xx_hal_i2c.c library.
I have on the same board another chip connecting to SDA/SCL lines and I manage to communicate with successfully.
code example:
uint8_t buffTx[4] = {0x00,0x2B, 0xF6 , 0x75 };
HAL_I2C_Master_Transmit(&hi2c1, M24LR_Add, buffTx, 4, 10);
HAL_I2C_Master_Receive(&hi2c1, M24LR_Add, dataBufferAdd, 8, 10);
Any help would be appreciated.
Thanks!
