This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2C Communication problem with nRF52840

Hello,

I am trying to make LSM6DSR (STEVAL-MKI194V1) work with nRF52840 using TWI Communication.

Problem:

Firstly, I modified the TWI sensor example to use the accelerometer (LSM6DSR). When I test my program, I can only see the LED blink. I don’t have any return with NRF_LOG_INFO.

Secondly, I used TWI Scanner example. LSM6DSR is not detected with TWI Scanner example in Nordic SDK15. I don’t have any return with NRF_LOG_INFO.

Background:

I already use the same sensor with an Arduino board without any problem. When I have the problem with nRF52840, I try to add a pull up a resistance, but the result is the same. I used an oscilloscope to see the SCL (CH1) and SDA (CH2) signal for each test with nRF52840. I have the same result the 2 tests.

I also test the Hello example to see if I have the same problem with NRF_LOG_INFO and Its work.

Related