Trouble getting SPI to work together with BLE

Hi,

I have been working on a setup where I connect a sensor (TI ADS1299) to the nRF5340-DK 2.0.0 using an SPI connection and transmit the recorded data using BLE. I have been able to get the SPI connection and the BLE connection working separately, but when combining the functionalities a problem arises. The program builds and programs fine, but when running it, the SPI connection does not seem to be working properly. All registers that store the data are left empty, instead of containing the measured data. The BLE connection does still work but only transmits zeros, probably as the result of the SPI connection not working as it should. 

What could be the problem here? Do the nrfx_SPIM and BLE functionalities interfere with each other? 

My setup:

PC: HP Zbook G4 Studio 

OS: Windows 10

nRF Connect for Desktop v3.10.0

Does anyone have any suggestions on how to fix this issue?

Kind regards,

C

Parents Reply
  • I do not see any obvious reasons for why this works fine without BLE, but not when it's enabled. You haven't changed the pinout by any chance? I notice you are using P0.02 for the chip select line and that you have set the CONFIG_NFCT_PINS_AS_GPIOS option, but have you also remembered to short R42 and R45 and remove the 0R resitor on R43 and R46 on the board?

    NFC antenna interface

    A scope or logic analyzer capture of the SPI transfer would be helpful if we need to troubleshoot this further.

Children
Related