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
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.
Hi,
I'll be taking over this case as Håkon is out-of-office,
psencao said:only use the lis2dh application,can't Initial start with no log,add the lis2dh device to beacon application,found the i2c error.
Can you clarify if the standard unmodified LIS2DH sample works on your board? This means without merging it with the beacon sample?
Have you modified the pins that are used in the sample, if so what pins are you using?
regards
Jared
it's also Unable to initialize:
The pins of both sda and scl have no signal change and keep low level
Hi,
Ok, so you're not able to run the unmodified lis2dh sample on your board?
Have you checked the log? What error message do you get?
regards
Jared
where is the debug log?this is the error message:
Hi,
Have you modified the pins that the sample is using? Can you share the schematic of the module that you're using?
regards
Jared