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


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.


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.

enter image description here

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

  • \$\begingroup\$ Stash your changes and work with the original example code instead. Even without the target chip of the original example, you need to see bus activity there. If not you have a more fundamental problem - wrong pin, wrong settings in scope, maybe not even running the intended code. There's not much in your question anyone can use to help you. \$\endgroup\$ Dec 2, 2019 at 14:04
  • \$\begingroup\$ If the nrF uses ARM, you should make sure you're turning the peripheral on. \$\endgroup\$ Dec 2, 2019 at 14:05
  • \$\begingroup\$ Test without the LSM6DSR board until you can see an SPI signal on the scope. That way you can rule out electrical problems. \$\endgroup\$
    – Codo
    Dec 2, 2019 at 14:35
  • \$\begingroup\$ I’m voting to close this question because it has been long abandoned by the asker with no effort to narrow down the problem \$\endgroup\$ Oct 8, 2020 at 23:13

1 Answer 1


It seems quite likely this is a firmware issue on your nRF chip, especially since you were able to get good readings from Arduino example code.

Try messing with the original nRF example code until you get some activity on your scope. Check basic settings first, like pin mappings and whether the right I2C peripheral is getting enabled. Once you've gotten that, implement your interface to your sensor in small steps, verifying them as you go. A good first step is to read the 'WHOAMI' register of the LSM6DSR.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.