cancel
Showing results for 
Search instead for 
Did you mean: 

problem with I2C_EE_ByteWrite

spa
Associate II
Posted on February 11, 2009 at 11:24

problem with I2C_EE_ByteWrite

1 REPLY 1
spa
Associate II
Posted on May 17, 2011 at 13:02

HI.

I have a small problem, when I in a loop call I2C_EE_ByteWrite() form the i2c_ee.c file form the M24C08_EEPROM ST example it get stuck at

while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED));

My code

Code:

for(i=0; i<32; i++)

{

I2C_EE_ByteWrite(pBuffer,address+i);

}

I think I need to check a flag or a event before I call I2C_EE_ByteWrite, but which one.

Hope you can help me.:-D

Soeren