Hi,
I am trying to use I2C peripheral on the board. I tried using the i2c peripheral example ( master_slave_loopback.c).
It executed well for the first time... I could see the prints on Hyperterminal of both Master to Slave and Slave-Master transmission of data. But when I execute it for the second time, it get stucks in the following while loop and never comes out. Looks like some effect of the previous execution. It does not recovers even after reset, power cycle of the board. Only way to recover is keep the board unpower for 2-3 hours. Kindly help. I am using IAR Tool for compilation and no change in the standard example code.
Regards,
Geet
//
// Wait until the slave has received and acknowledged the data.
//
while(!(I2CSlaveStatus(I2C0_SLAVE_BASE) & I2C_SCSR_RREQ))
{
}