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

SPI nrf52832

hi,

I am trying to add SPI (master) codes into the ble_app_uart.

My setting for SPI is as follows:

#define SPI1_ENABLED 1 //
#define SPI_INSTANCE 1 /**< SPI instance index. */
//#define SPI0_ENABLED 0
#define SPIM_IN_USE 0
#define SPI_IN_USE 1

I have included the nrf_drv_spi.h and nrf_drv_config.h in main.c

yet when I am trying to compile the project. One error occurred in nrf_drv_spi.c(which I added into the project) indicting "wrong configuration"

And even if I assigned the value of SPIM_IN_USE and SPI_IN_USE, the error still occurs. After compiling, a window shows saying "browse information of one or more  files is not available"

I am wondering what's wrong with it?

Related