lpcware

[LPCOpen][LPC17xx] I2C master freeze

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Mar 15, 2018 by danielholala
Content originally posted in LPCWare by pgr on Thu Apr 10 01:56:38 MST 2014
Dear all,

I am using I2C0 as a master on a LPC1763 with LPCOpen stack.
Sometimes randomly the I2C driver freeze inside Chip_I2C_EventHandlerPolling() function.
The Chip_I2C_IsStateChanged() function never return a change so the status is never updated...
I have added some trace to see that I2CSTAT stay at 0xf8 and I2CONSET stay at 0x60.

I have tried to use the interrupt base handler with exactly the same results.

Do you have any idea why I have this behavior ? Any idea to add a timeout mechanism in the I2C stack ?

Thanks in advance for your help

Outcomes