<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>QSPI pins in 52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47151/qspi-pins-in-52840</link><description>As per the datasheet of nrf52840 any peripheral like SPI/UART/... can be configured to any of the GPIOs so is the QSPI also. 
 But at Pin details QSPI pins are recommended at only some particular pins. Any reason for it? 
 Can QSPI be configured to any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Aug 2020 05:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47151/qspi-pins-in-52840" /><item><title>RE: QSPI pins in 52840</title><link>https://devzone.nordicsemi.com/thread/266084?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 05:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8303935d-1243-4b57-bfa7-b25a92241fdc</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;hi,i m use the qspi&amp;#39;s pin as the spi &amp;lsquo;s pin,but the pin have no ware,the project i use is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nordic sdk\nRF5_SDK_16.0.0_98a08e2\examples\peripheral\spi&lt;/p&gt;
&lt;p&gt;and i modify the pin map of spi:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;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   = SPI_SS_PIN;
    spi_config.miso_pin = 22/*SPI_MISO_PIN*/;
    spi_config.mosi_pin = 21/*SPI_MOSI_PIN*/;
    spi_config.sck_pin  = SPI_SCK_PIN;
    APP_ERROR_CHECK(nrf_drv_spi_init(&amp;amp;spi, &amp;amp;spi_config, spi_event_handler, NULL));

    NRF_LOG_INFO(&amp;quot;SPI example started.&amp;quot;);

    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(&amp;amp;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);
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and i cant see the ware in the pin of p0.21 and p0.22.the chip is nrf52840,so i dont known whay it cant delect ware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI pins in 52840</title><link>https://devzone.nordicsemi.com/thread/186448?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 13:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5f244ad-adf1-4259-a94e-4c8701f8e0e3</guid><dc:creator>farooq</dc:creator><description>&lt;p&gt;Thank you so much for the quick reply.&lt;/p&gt;
&lt;p&gt;I will check with my hardware dept.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI pins in 52840</title><link>https://devzone.nordicsemi.com/thread/186409?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 11:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333d736e-a993-4a39-bab7-b80ffe8fcdfc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Farooq&lt;/p&gt;
&lt;p&gt;The recommendations in table 143 are just that, recommendations. So you can configure any of the GPIO pins as QSPI. However the pins recommended for low freq I/O only could interfere with the radio performance if used for high frequency operations, such as the QSPI. So you can use any GPIOs except P0.10, P1.06, P0.09, P1.03, P1.07, P1.05, P1.02, P1.04 and P1.01 without any problems what so ever.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are not using the radio simultaneously as the QSPI you can use these pins as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>