HI,
how can I the recovery I2C bus is blocked. , SDA line low state?
Thanks
HI,
how can I the recovery I2C bus is blocked. , SDA line low state?
Thanks
Hi
The nRF52832 is the master, and I have accelerometer, touch and heart rate sensor on the same bus.
I don't know why it hangs but the sda line stays down and I get communication error, red message from the system.
I think it is one of the three sensors that is waiting for the clock.
How do I get a series of pulses out on the SCL line when this happens? Thanks
Fausto
Hi
The nRF52832 is the master, and I have accelerometer, touch and heart rate sensor on the same bus.
I don't know why it hangs but the sda line stays down and I get communication error, red message from the system.
I think it is one of the three sensors that is waiting for the clock.
How do I get a series of pulses out on the SCL line when this happens? Thanks
Fausto
If you look at the implementation of nrf_drv_twi_init() you can find there is a:
if(p_config->clear_bus_init)
{
/* Send clocks (max 9) until slave device back from stuck mode */
twi_clear_bus(p_config);
}
So I recommend to try to uninit, then init with the clear_bus_init flag set to true.
Kenneth
Hi Kenneth,
in which file do I find nrf_drv_twi_init () do you have an example of how to use the uninit and init?
I have recently used this micro and ncs.
Thank you
Fausto
I was not aware you were using ncs, in that case this discussion may be helpful to find a workaround (different chip, but same problem):
https://devzone.nordicsemi.com/f/nordic-q-a/74731/nrf9160-i2c-twi-recovery-and-microsecond-resolution-timer
Hi,
Is there an alternative to ncs tools as a development environment?
How close opened i2c device? in ncs zephyr?
Thanks
Best Regards