ERROR ['NRF_DRV_SPI_INSTANCE_0' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_'?]

When developing a BLE device with nRF52840, the following error occurred when importing the header file for spi communication.

ERROR ['NRF_DRV_SPI_INSTANCE_0' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_'?]

SPI_ENABLE in sdk_config.h has been confirmed. I'm in trouble because I can't solve this error.

Related