Hi,
I'm working with the nrf52840 and spi mngr to talk to a SPI flash memory (AT25SF081). I use nrf_spi_mngr_perform to send a command to read the manufacturer ID
const uint8_t data[] = {0x9F}; uint8_t mnf_id[4] = {0x00, 0x00, 0x00, 0x00}; nrf_spi_mngr_transfer_t const transfer[] = { NRF_SPI_MNGR_TRANSFER(data, sizeof(data), response, sizeof(response)) }; nrf_spi_mngr_perform(&m_nrf_spi_mngr, NULL, transfer, ARRAY_SIZE(transfer), NULL);
static nrf_drv_spi_config_t const m_master_config = { .sck_pin = NRF_GPIO_PIN_MAP(1, 4), .mosi_pin = NRF_GPIO_PIN_MAP(1, 1), .miso_pin = NRF_GPIO_PIN_MAP(1, 2), .ss_pin = NRF_GPIO_PIN_MAP(1, 3), .irq_priority = APP_IRQ_PRIORITY_LOWEST, .orc = 0x00, .frequency = NRF_DRV_SPI_FREQ_2M, .mode = NRF_DRV_SPI_MODE_0, .bit_order = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST };