I tried to add spi driver to existing BLE project but I've got this error:
../nRF5_SDK_current/integration/nrfx/legacy/nrf_drv_spi.h:120:37: error: 'NRF_DRV_SPI_INSTANCE_0' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_'?
I tried to add spi driver to existing BLE project but I've got this error:
../nRF5_SDK_current/integration/nrfx/legacy/nrf_drv_spi.h:120:37: error: 'NRF_DRV_SPI_INSTANCE_0' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_'?
Fixed by enabling SPI0 INSTANCE
by now I've got another error:
in function `nrf_drv_spi_init':
nRF5_SDK_Current\integration\nrfx\legacy/nrf_drv_spi.c:121: undefined reference to `nrfx_spim_init'
Fixed by adding nrfx_spi.c and nrfx_spim.c to nRF_Drivers folder
I was just about to suggest this solution, but you beat me to it.
Glad you were able to solve the issue!
Best regards,
Karl