On Mon, Mar 2, 2020 at 2:46 PM Augusto Fraga Giachero <augustof...@gmail.com> wrote: > I experienced some crashes when using I2C devices with lpc1769 micros > (again). I found that the root cause of this behaviour is a race > condition in which nxsem_wait(&priv->wait) inside lpc17_40_i2c_start() > doesn't resume fast enough causing the priv->wait semaphore to be > incremented twice. > > I also improved the timeout calculation I did last year, patches attached.
Hello Augusto, I converted your patches to a GitHub pull request. It is pull request #419. See: https://github.com/apache/incubator-nuttx/pull/419 It is waiting for review / merging. Thank you! Nathan