- Last Active
Hi Matt, Sorry I meant to post back here. I managed to get it working. There were 3 issues: 1) The mode (I am now using 0 but the datasheet suggests that 3 would also work) 2) I had the wrong dma mode. 3) I was not reading back enough bytes.…
cont and a write function that looks like: memset(m_rx_buf, 0, SPI_BUFFER_SIZE); spi_xfer_done = false; APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, 8, m_rx_buf, 8)); while(spi_xfer_done =…
I am still struggling with the BMI160 spi interface.My RX registers are always 0xFF. I have #define SPI0_ENABLED 1 #if (SPI0_ENABLED == 1) #define SPI0_USE_EASY_DMA 0 #define SPI0_CONFIG_SCK_PIN 30 #define SPI0_CONFIG_MOSI_PI…
Thanks. When I googled that yesterday and clicked on what looks like the same link I got a site down error, must just have been unlucky.
Thanks that worked. I don't suppose you have the datasheet for the BMI160 handy. The SPI settings for it is what I am really after.