Hi, I have the D52QD2M4IA-A chip (from dynastream) that has inside nrf52832 chip. It has also builtin an onboard LIS2DH accelerometer. However when I am trying to connect to it through SPI interface this seems not to respond back. Can Anyone help?
Hi, I have the D52QD2M4IA-A chip (from dynastream) that has inside nrf52832 chip. It has also builtin an onboard LIS2DH accelerometer. However when I am trying to connect to it through SPI interface this seems not to respond back. Can Anyone help?
The is a required start up time for this chip to run its own initialization routine. Add a time delay before writing to the chip and it should work fine. Check the LIS2DH data sheet for the exact time delay required.
Hi, I run my program in debug mode so I suppose there is the appropriate time needed from the chip tto initialize. Or is there the need to change the nrf_drv_spi_init builtin function to add inside this time delay?
Did you try reading the WHO_AM_I register ?
Have you hooked up a logic analyser to confirm that you are enabling the device and sending valid data to it ?
How I can hook this logic analyser? Itried the WHO_AM_I but in debug mode i got back 0 value in the device response!
I just tested this on my dev board and I can read the WHO_AM_I register as soon as the LOG init stuff has finished, even before I do APP_TIMER_INIT etc
So your code probably has an error, double check the pin assignments and also that you initialised the SPI correctly