hi ,
i want to use the pin p0.19, p0.20, p0.21, p0.20 as the spi‘s pin scl,cs,mosi,miso.
and i test in the project nRF5_SDK_16.0.0_98a08e2\examples\peripheral\spi
my device is pca10056,i just modify the pin like this:
int main(void)
{
bsp_board_init(BSP_INIT_LEDS);
APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
NRF_LOG_DEFAULT_BACKENDS_INIT();
nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
spi_config.ss_pin = 20/*SPI_SS_PIN*/;
spi_config.miso_pin = 22/*SPI_MISO_PIN*/;
spi_config.mosi_pin = 21/*SPI_MOSI_PIN*/;
spi_config.sck_pin = 19/*SPI_SCK_PIN*/;
APP_ERROR_CHECK(nrf_drv_spi_init(&spi, &spi_config, spi_event_handler, NULL));
NRF_LOG_INFO("SPI example started.");
while (1)
{
// Reset rx buffer and transfer done flag
memset(m_rx_buf, 0, m_length);
spi_xfer_done = false;
APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length));
while (!spi_xfer_done)
{
__WFE();
}
NRF_LOG_FLUSH();
bsp_board_led_invert(BSP_BOARD_LED_0);
nrf_delay_ms(200);
}
}
and i cut off the point of connect between u3 and nrf52840's qspi pin in pca10056.and i also cant measure the ware of spi .as the description of nrf52840 ,p0.19 p0.20 p0.21 p0.22 is high speed gpio .so i dont know why the qspi‘s io cant be spi pin.and i try to modify the the spi 's pin to other high speed pin,and it can work.so if the pin of qspi cant be spi's pin?

