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

SPI problem

Hi Nordic team,

I'm trying to run demo SPI programs from NRF5 SDK. I want to create simple SPI communication between two dongles, of which one would be master and the other one - slave. Both projects (SPIS and SPI) compiled and I can flash them on the dongles. The problem is that there is no communication between devices. When I started to check master SPI pins, I saw that MISO, MOSi, CS and SCK pins are the same voltage levels ~65mV and constantly gives away sawtooth form signal. From projects I excluded all logging module elements (NRF_LOG), also excluded app_timer2.c files. Also I set pins which are further away from the antenna and which are unused. I tried to change SPI bus frequency, but the problem remained the same. I could provide more information tomorrow. 

Thanks for any thoughts.

Parents
  • Hello,

    I'm trying to run demo SPI programs from NRF5 SDK. I want to create simple SPI communication between two dongles, of which one would be master and the other one - slave. Both projects (SPIS and SPI) compiled and I can flash them on the dongles.

    Neither the SPIS example nor the SPIM example in the SDK is made for the nRF52840 dongle(PCA10059 board). I assume that you have modified them using the Dongle Programming Tutorial or a similar resource? Could you also confirm which of the examples SPI, SPIS, SPIM, SPI_transaction_manager examples, and which SDK version you are working with?

    Could you also tell me your pin configuration and SPI configurations on the two dongles?
    From your description, it seems that the SPI is not configured/enabled correctly.

    Also I set pins which are further away from the antenna and which are unused.

    Did you have a look at the Pin Assignment documentation when doing this?

    Do you have access to a Development Kit? Since the Dongle does not have an on-board debugger, many of the conventional embedded programming debugging techniques are unavailable. A DK would enable use of its debugger for the dongle application.

    Best regards,
    Karl

Reply
  • Hello,

    I'm trying to run demo SPI programs from NRF5 SDK. I want to create simple SPI communication between two dongles, of which one would be master and the other one - slave. Both projects (SPIS and SPI) compiled and I can flash them on the dongles.

    Neither the SPIS example nor the SPIM example in the SDK is made for the nRF52840 dongle(PCA10059 board). I assume that you have modified them using the Dongle Programming Tutorial or a similar resource? Could you also confirm which of the examples SPI, SPIS, SPIM, SPI_transaction_manager examples, and which SDK version you are working with?

    Could you also tell me your pin configuration and SPI configurations on the two dongles?
    From your description, it seems that the SPI is not configured/enabled correctly.

    Also I set pins which are further away from the antenna and which are unused.

    Did you have a look at the Pin Assignment documentation when doing this?

    Do you have access to a Development Kit? Since the Dongle does not have an on-board debugger, many of the conventional embedded programming debugging techniques are unavailable. A DK would enable use of its debugger for the dongle application.

    Best regards,
    Karl

Children
No Data
Related