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
the i2c pins' schematic as follows
Hi,
The schematics shows that you're using P0.28 and P0.29 but the unmodified sample use P0.26 and P0.27. Did you modify the sample to fit your board? Can you share the dts file that you're using, and preferably your build folder as well?
regards
Jared
the i2c of sample is using p0.28 and p0.29,Is this configuration of i2c not in effect?thank you
Hi,
Yes with your custom dtsi and dts it would use P0.28 and P0.29, but using the standard nRF52832 LIS2DH sample I think it should use P0.26 and P0.27,
Either way, can you flash your custom code and try to read out the GPIO_PIN_CNF[n] for P0.28 and P0.29?
You can use nRF Command Line Tools for this:
Like this:
//For P0.28 nrfjprog --memrd 0x50000770 //For P0.29 nrfjprog --memrd 0x50000774
regards
Jared
with debug at main,configuration is as follows,the i2c pins are correct