Hi,
Can't get rid of compilation error about undefined NRFX_SPI0_INST_IDX after adding nrfx_spi driver. Searched the forums and found similar issues but none of the suggested actions seems to work for me. The steps taken to add the driver:
- nrfx_spi.c added to project
- #define NRFX_SPI_ENABLED 1 and #define NRFX_SPI0_ENABLED 1 in sdk_config.h
- Include file search paths updated as far as I can tell (no complaints about missing files)
Using a very similar configuration for TWI/TWI0 which I managed to get working. I had issues with this as well but managed to solve it by defining TWI_ENABLED 1 and TWI0_ENABLED 1 as well. The corresponding thing does not work with SPI though.
Using IAR compiler and SDK 15.0.0, nRF52832
BR
/Ola