Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832, 2 SPI Bus usage

Hello,

        I want to use 2 SPI bus with nRF52832 IC and SDK5. I can use the "SPI example" for first SPI bus. For the second SPI Bus, I think that I need to modify "sdk_config.h" file.

        How should I modify the "sdk_config.h" file ?

       Are the settings below enough ?

Fullscreen
1
2
3
4
5
6
7
8
#define NRFX_SPIM_ENABLED 1
#define NRFX_SPIM0_ENABLED 1
#define NRFX_SPIM1_ENABLED 1
#define NRFX_SPI_ENABLED 1
#define NRFX_SPI0_ENABLED 1
#define NRFX_SPI1_ENABLED 1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX