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

SPI/I2C Step on nRF52833 to read BMI160 outputs

Hello,

I am trying to read BMI160 outputs using SPI protocol but I am struggling to get a successful build from my code. 

The build fails at the first line of my code //static nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE( 0 ); // SPI instance// 

The complier doesn't recognise NRF_DRV_SPI_INSTANCE even though it is in the libraries into nrf_drv_spi library. 

I don't know what I am doing wrong? Could I get some help please?

Please find below my code. 

Thanks a lot.

Parents Reply Children
No Data
Related