<?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>why delay is needed after SPI transfer ?is it because SPI busy was not checked in SPI transfer API?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81733/why-delay-is-needed-after-spi-transfer-is-it-because-spi-busy-was-not-checked-in-spi-transfer-api</link><description>void DEV_SPI_WriteByte(UBYTE value) { // HAL_SPI_Transmit(&amp;amp;hspi1, &amp;amp;value, 1, 1000); APP_ERROR_CHECK( nrf_drv_spi_transfer(&amp;amp;spi, &amp;amp;value, 1, m_rx_buf, 1)); // nrf_delay_us(100); nrf_delay_ms(1); } 
 i am using the above function to transfer the data but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Nov 2021 07:55:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81733/why-delay-is-needed-after-spi-transfer-is-it-because-spi-busy-was-not-checked-in-spi-transfer-api" /><item><title>RE: why delay is needed after SPI transfer ?is it because SPI busy was not checked in SPI transfer API?</title><link>https://devzone.nordicsemi.com/thread/339343?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 07:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d094e167-e7ca-41a7-8d8d-434b9337017c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, but that is not the relevant part here. If you test a debug build (with DEBUG and DEBUG_NRF defined), you will see from the error handler in which file name and line number you got which error code. If you also enable logging you get this in the log.&lt;/p&gt;
&lt;p&gt;For instance&amp;nbsp;if you use a project based on a SDK Segger Embedded Studio project, select the Debug build configuration to automatically get more debug logging. Then run the test and check the log. You should see an error message similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;error&amp;gt; app: ERROR 15 [NRF_ERROR_FORBIDDEN] at C:\Users\eith\SDK\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs\main.c:974
PC at: 0x00034141
&amp;lt;error&amp;gt; app: End of error report&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here you see where the error occurred, and what it was. That gives you a good starting point for further investigations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why delay is needed after SPI transfer ?is it because SPI busy was not checked in SPI transfer API?</title><link>https://devzone.nordicsemi.com/thread/339325?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 04:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9059a4e-c7e4-487d-a2c0-9cfccc82d7c2</guid><dc:creator>venkatesha kj</dc:creator><description>&lt;p&gt;file name is app error check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why delay is needed after SPI transfer ?is it because SPI busy was not checked in SPI transfer API?</title><link>https://devzone.nordicsemi.com/thread/339232?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 13:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88de2872-fa2d-4f0f-b2db-0b524f4600d7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I cannot see from this short snipped what you do after the delay, which I assume is what is relevant here. Have you done any debugging to see what happens? As you say a break point is hit, I assume an error check has detected an error. Can you test with a debug build to see which file name, like number and error code that was from? (See &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;An introduction to error handling in nRF5 projects&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>