can't SPI make work

nRF52832, SDK17.1, s132

I work with SPI and it works on the this project with SDK15.
But I have transferred this prj to the SDK17.1 and I can't make SPI work. 

I don't get 

where I set 


flag.

here are my code with SPI init

And sdk_config.h where I set for SPI


What possible reason?

Thanks.

  • But I have transferred this prj to the SDK17.1 and I can't make SPI work. 

    Can you elaborate a bit more what doesn't work? Is there any error codes, do any of the spi transfers complete, does a logic analyzer trace show any data on the spi pins, is the spi data on mosi correct, do chip select toggle as expected etc.

    Kenneth

  • Hi, Kenneth!

    This board with SPI device LIS3DH works on the SDK15 properly. 
    What I mean.
    I call


    and got 

    where I set 


    And I able to run next string:


    One more time- it works on SDK15 on this board.

    I've transferred this code to the SDK17.1
    Made same settings and after start first string 

    I didn't get interrupt


    And ofcource I can't run next string


    But at this time MCU works and it counts global timer where increased variable. I can odserve it.

    So I have question- may be in the new SDK17.1 should I chexk some settings for DMA, for SPI? But I checked it.

    There are no any error wile MCU works and I wait call 

    Timer works.

  • If something externally is holding/forcing the clock pin low, that can for instance prevent the event handler to never toggle. Can that be the case?

    Kenneth

  • Which clock pin do you mean?
    This standart scheme MISO MOSI SCK. I copied those pin from SDK15 and transferred to SDK17 prj.

    Let me show my config:





    It should works with those settings

  • Hi,

    P0.10 can be used as NFC, have you set CONFIG_NFCT_PINS_AS_GPIOS in the preprocessor?

    Kenneth

1 2 3