This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI doesn't work in nrf52810 while emulating nrf52810 in nrf52832DK was successful

Our project is to read the gyro (lis3dh) by using SPI communication.

Since the infocenter says that using nrf52832 for developing nrf52810 is okay.

We currently developed codes by using nrf52832DK for nrf52810.

SPI was successful in the emulation and we have tried to transfer the code to the actual nrf52810 chip as the infocenter explained and correcting some bugs

emulating and transferring process:

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fnrf52810_user_guide.html&cp=4_0_0_5_0

correcting bugs: SPIM0 peripheral

https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810

We thought that mapping the pins would be enough but it was not.

In emulation, reading the sensor was successful but in the actual nrf52810 environment, SPI reads only '0xff'

For double checking, blinking LED and BLE NUS was successful but the spi communication was failed.

How can we solve this problem?

Does the transferring procedure has some bug?

Parents Reply
  • You need to try disconnecting MISO from the nRF, and monitoring at the Slave - that way you can tell if it's the Slave that's not sending, or the nRF that's clobbering it.

    You need to know that to know how to proceed.

    I assumed that porting emulated code into nrf52810 is easy because nrf52832 and nrf52810 is quite same architecture

    Indeed.

    It seems to me that the nRF52810 can be more trouble than it's worth - unless you're using huge volumes where every penny really counts.

    Disappointed

    it is not necessary to use pull up or pulldown in spi

    Correct.

Children
Related