Hello,
I am facing a really annoying issue when updating my SPI settings from the old nrf_drv_ towards the newer one nrfx , in SDK15. I am following the recommendtations of this link, but I am getting stuck when trying to create the SPI instance.
I follow these steps, the instantiation of the SPI is done like this
I have enabled the interface in the sdk_config.h like this
And I am getting the error while compiling, shown as well in the image
'NRFX_SPI2_INST_IDX' undeclared here (not in a function)
in definition of macro 'NRFX_CONCAT_3_'
in expansion of macro 'NRFX_CONCAT_3'
in expansion of macro 'NRFX_SPI_INSTANCE'
Why do I get this error and how can I ride of it? Furthermore, why is not a clear documentation of how to use the new driver ? I can reproduce the exact same problem in the SPI example if I change the SPI instance from 0 to 2 ( previously enabling SPI Instance 2 on the sdk_config.h)
Thanks