use the example project of lis2dh on ncs,the pin configuration of the i2c is correct,but it's can't to initialize,as follows:
Is there anything else need to configure
use the example project of lis2dh on ncs,the pin configuration of the i2c is correct,but it's can't to initialize,as follows:
Is there anything else need to configure
Hi psencao,
Have you performed any measurements on the I2C lines? Is there any activity on the lines? Do you have access to an oscilloscope?
Would you be able to share some details regarding your project? Which board are you using, is it the nRF52840 DK or a custom board? How is the sensor connected? Which pins are you using? Could you please share your overlay or some project files?
Could you please also post the complete log file?
a_beacon.zipthe version of ncs is v2.2.0。only use the lis2dh application,can't Initial start with no log,add the lis2dh device to beacon application,found the i2c error.
the board is dwm1001 dev,The pin has been configured as follows:
prj.conf:
.dts:
main.c:
the rttlog:
does the project have a log saved during debugging?
i use the nRF5_SDK_16.0.0 to control the lis2dh and it's normal
thank you
Thank you for the additional information. If you are able to probe the pins to look for activity it would speed up the search for the error. I will in any case look for other possible ways to find the error.