I am new with nrf52 DK . I was trying to work with SPI code example given in the nordic example folder but its not working . I am trying to transfer the accellero/ gyro data through spi to nrf52.
I am new with nrf52 DK . I was trying to work with SPI code example given in the nordic example folder but its not working . I am trying to transfer the accellero/ gyro data through spi to nrf52.
Hello nav_s,
If you are new to the nRF52 family and development, I would recommend you to check out this thread.
Are you using the SPI Master example project?
Please describe what you are doing, and in what steps where it does not work.
Have you tried debugging you project?
Do you have experience with SPI on any other platforms?
As Martin Lesund says, "not working" tells us nothing - you need to give full details of
Hi, I am using Master SPI example in the nrf52 DK board and connecting my accelero output to controller through SPI. So I was expecting some output in the m_rux_buf string after the accelerometer starts sending information but this string always remains empty. I have checked MOSI pin of controller on oscilloscope,its working fine but what I have to do when want to receive info from the accelerometer (controller (MISO)is getting data from sensor )
Normally when SPI is not working the problem is one of the following :
1 : You have configured the pins incorrectly. nRF52 datasheet specifies the GPIO settings required to ensure proper SPI functionality prior to enabling the SPI functionality on the pins.
2 : MOSI/MISO pins are swapped.
3 : Incorrect SPI mode / frequency. You will find the mode and max frequency in the accelerometer datasheet.
4 : You have forgotten to lower the CS pin prior to sending requests to the accelerometer.
But without any more details / code example of what you are doing it will be very difficult to help you pinpoint the problem.
Hi, I am using Master SPI example in the nrf52 DK board and connecting my accelero output to controller through SPI. So I was expecting some output in the m_rux_buf string after the accelerometer starts sending information but this string always remains empty. I have checked MOSI pin of controller on oscilloscope,its working fine but what I have to do when want to receive info from the accelerometer (controller (MISO)is getting data from sensor )