<?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>Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113885/code-hangs-when-using-spi3</link><description>we are using SPI3 in nrf52840 with nrf SDK 16.0 
 we are using this as below 
 1. SPI3 init -polling mode 
 2. SPI3 unint 
 3. SPI3 init - DMA mode 
 4. SPI3 unint 
 5. SPI3 init -polling mode 
 6. SPI3 unit 
 
 The code gets hanged when we write through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Oct 2024 13:03:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113885/code-hangs-when-using-spi3" /><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/504834?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2024 13:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43198095-1a01-4840-b3ec-d8ded3c081c5</guid><dc:creator>Edvin</dc:creator><description>[quote user="Madhukeshwar"]NRF_SPIM_TASK_START is already triggered. only&amp;nbsp;NRF_SPIM_EVENT_ENDRX is generated , but not the&amp;nbsp;&amp;nbsp;NRF_SPIM_EVENT_ENDTX, so It got stuck the while loop.[/quote]
&lt;p&gt;Then I guess it either didn&amp;#39;t have the time to properly start, or it wasn&amp;#39;t started before the uninit, which will hang like you see if you are using the HOLD_XFER flag.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To work around this, make sure that you don&amp;#39;t have a pending transaction with NRFX_SPIM_FLAG_HOLD_XFER, by transmitting it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/504724?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 14:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19bdff9f-ba9b-418b-a5e7-3d3f0ca483ec</guid><dc:creator>Madhukeshwar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/504698"]Do you use&amp;nbsp;NRFX_SPIM_FLAG_HOLD_XFER when transferring your SPI messages?[/quote]
&lt;p&gt;we are using&amp;nbsp;NRF_DRV_SPI_FLAG_HOLD_XFER during DMA mode.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/504379"]What API is hanging? And how did you disable it in step 4, and how did you enable it in step 5?[/quote]
&lt;p&gt;In API- spim_xfer the code is hanging. that to in the below mentioned while loop.&amp;nbsp; &lt;br /&gt;I have checked the flow. NRF_SPIM_TASK_START is already triggered. only&amp;nbsp;NRF_SPIM_EVENT_ENDRX is generated , but not the&amp;nbsp;&amp;nbsp;NRF_SPIM_EVENT_ENDTX, so It got stuck the while loop.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; if (!p_cb-&amp;gt;handler)
    {
        while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_END)){}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To disable spi3 we are using,&amp;nbsp;nrf_drv_spi_uninit() and then&amp;nbsp;nrf_spim_event_clear to clear&amp;nbsp;NRF_SPIM_EVENT_END.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/504698"]Could this be what you are seeing?[/quote]
&lt;p&gt;no this is not the case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/504698?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 12:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb895b4b-8118-44e3-80d3-a2031828dd9c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you use&amp;nbsp;NRFX_SPIM_FLAG_HOLD_XFER when transferring your SPI messages?&lt;/p&gt;
&lt;p&gt;I have seen occasions of this behavior during uninit when the NRFX_SPIM_FLAG_HOLD_XFER is being used, and they used some event + PPI to trigger actually sending the transfer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In this case,&amp;nbsp;p_cb-&amp;gt;transfer_in_progress is set to true in&amp;nbsp;nrfx_spim_xfer(), but the NRF_SPIM-&amp;gt;TASKS_START is never triggered. Later, when the nrfx_uninit() is being called, this part:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    if (p_cb-&amp;gt;handler)
    {
        nrf_spim_int_disable(p_spim, NRF_SPIM_ALL_INTS_MASK);
        if (p_cb-&amp;gt;transfer_in_progress)
        {
            // Ensure that SPI is not performing any transfer.
            nrf_spim_task_trigger(p_spim, NRF_SPIM_TASK_STOP);
            while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_STOPPED))
            {}
            p_cb-&amp;gt;transfer_in_progress = false;
        }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;will try to stop the ongoing transaction, and wait for the NRF_SPIM_EVENT_STOPPED, which will never occur, since it was not started.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this be what you are seeing?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/504379?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 13:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:177d31ed-ea34-48d1-9cc2-54125f3b7cc2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I had to work on some non-DevZone related tasks last one and a half week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is still not clear to me exactly what your issue is. What API is hanging? And how did you disable it in step 4, and how did you enable it in step 5?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/503542?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2024 09:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be3b8bb8-9158-4d26-807f-4d086368b2b0</guid><dc:creator>Madhukeshwar</dc:creator><description>&lt;p&gt;hey,&lt;br /&gt;&lt;br /&gt;we wanted to follow up on this issue.even when using timer as suggested our code still stucks in the while loop.Please suggest if there are any other workaround or other ways to look into this issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502913?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 10:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28122413-a8cf-44e1-9418-ad170100c6c3</guid><dc:creator>Madhukeshwar</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502891"]What accelerometer? I have a couple laying around.&amp;nbsp;[/quote]
&lt;p&gt;we are using adxl355.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502891"] I haven&amp;#39;t seen any of your code yet, so difficult to say. [/quote]
&lt;p&gt;Our project is too huge. we are trying to reproduce it in another project. we aren&amp;#39;t able to reproduce the issue in another project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502891"]docs.nordicsemi.com/.../anomaly_840_193.html
&lt;p&gt;We are not using TASK_SUSPEND. this wont be the possible suspect.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502891"]you can use a timer or something to detect that a certain amount of time has passed without it returning, and power cycle the SPIM3 using the snippet in the errata documentation.[/quote]
&lt;p&gt;After executing this code snippet it is again returning to that while loop.&lt;br /&gt;Even I tried to abort the spi transfer, after executing this abort function it is returning to while loop only. it is coming out of while loop only when the device resets.&amp;nbsp;&lt;/p&gt;[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502891?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 08:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906d2241-d80b-46a2-b495-9305c4dc35d2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What accelerometer? I have a couple laying around.&amp;nbsp;&lt;/p&gt;
[quote user="Madhukeshwar"]what could be the possible reason for&amp;nbsp;&lt;span&gt;NRF_SPIM_EVENT_ENDTX&amp;nbsp;to not get generated?&lt;/span&gt;[/quote]
&lt;p&gt;well, I haven&amp;#39;t seen any of your code yet, so difficult to say. But I would say that if you didn&amp;#39;t actually send an SPI command, but queued it up, that may lead to these kinds of deadlocks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, this also looks like a possible suspect:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52840_Rev3/page/ERR/nRF52840/Rev3/latest/anomaly_840_193.html#anomaly_840_193"&gt;https://docs.nordicsemi.com/bundle/errata_nRF52840_Rev3/page/ERR/nRF52840/Rev3/latest/anomaly_840_193.html#anomaly_840_193&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The workaround for this errata would either be to make sure that the transmission is completed before you uninit/suspend it, or you can use a timer or something to detect that a certain amount of time has passed without it returning, and power cycle the SPIM3 using the snippet in the errata documentation.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502725?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 09:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:034d9feb-230a-4197-b4a4-817692a3d96a</guid><dc:creator>Madhukeshwar</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502714"]What sort of SPI device are you using?[/quote]
&lt;p&gt;we are using accelerometer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502714"]s it possible (for you or me) to write a dummy SPIS device running on another DK that can be used to reproduce the issue? [/quote]
&lt;p&gt;I am trying to reproduce the issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I found out that&amp;nbsp;NRF_SPIM_EVENT_ENDTX is not getting generated and so the NRF_SPIM_EVENT_END&amp;nbsp; event.&amp;nbsp;&lt;br /&gt;what could be the possible reason for&amp;nbsp;&lt;span&gt;NRF_SPIM_EVENT_ENDTX&amp;nbsp;to not get generated?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502714?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 08:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ffc4b3-e686-426b-85ac-c67c02e1af06</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What sort of SPI device are you using? Is it possible (for you or me) to write a dummy SPIS device running on another DK that can be used to reproduce the issue? What sort of SPIS commands does it need to respond to? Is it possible to provide a set?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502580?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 09:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5aa1d01-5d2b-4fd2-b553-42783f181f83</guid><dc:creator>Madhukeshwar</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502496"]What sort of transaction is this? Are you trying to read or write? [/quote]
&lt;p&gt;We are trying to write with length 2. I have checked by logging.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;//logs printed to check tx_buffer_length
&amp;lt;info&amp;gt; app: p_spi_instant     5DB38
&amp;lt;info&amp;gt; app: p_tx_buffer       2002CBE2
&amp;lt;info&amp;gt; app: tx_buffer_length  2
&amp;lt;info&amp;gt; app: p_rx_buffer       0
&amp;lt;info&amp;gt; app: rx_buffer_length  0&lt;/pre&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502496"]Why does it try to send a message with length 0?[/quote]
&lt;p&gt;I am not getting in the call stack why it is showing length as 0.&lt;br /&gt;In the call stack, sometimes TX buffer length is zero. sometimes it has some value. but the issue occurred at the same location each time.&lt;/p&gt;
&lt;p&gt;I have taken the multiple screenshots whenever the issue got reproduced. I have attached below.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726479523043v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726479541837v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726479564385v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726479586184v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502496?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 13:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54f7beb2-2cd4-49b4-a95d-b0d902419d72</guid><dc:creator>Edvin</dc:creator><description>[quote user="Madhukeshwar"]Yeah, we need to use some external device. you can tell us what need to checked[/quote]
&lt;p&gt;I suspected that. Is there a chance you can try to check if you are able to reproduce if you use another DK as the SPIS? (SDK\examples\peripheral\spis)&lt;/p&gt;
&lt;p&gt;Can you grab another screenshot of the issue and expand the view of the callstack?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually, it looks a bit weird:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726233715804v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What sort of transaction is this? Are you trying to read or write? Because the TX buffer has a length of 0x00, and the RX buffer is located in 0x00000000, but I can&amp;#39;t see it&amp;#39;s length. So either it means that you are trying to send a message with length 0, or you are trying to receive a message and store it in a buffer located at 0x00000000 (which will cause your device to crash if it was actually stored there, but I guess it is a NULL pointer, because this is a TX transaction, and not an RX or a two way transaction).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if you could expand the callstack to show more than just two lines, and try to do some research as to what kind of transaction that is ongoing. Why does it try to send a message with length 0?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502420?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 05:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c4ebd5-7b00-48fa-8ca4-f689f1ded3b1</guid><dc:creator>Madhukeshwar</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502395"]And do you see the callstack that brought it there?[/quote]
&lt;p&gt;yeah,&lt;br /&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726206201038v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have attached the screenshot of the call stack.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have checked status of SPI Un-initialization and initialization with the error code it returns. It returned NRF_SUCCESS but the issue still exist.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502395"]Have you tried sending it an SPI message,[/quote]
&lt;p&gt;yeah. This issue is occurring when we send an SPI message i.e. in spim_xfer function it is getting stuck. The issue is occurring at the same location. but not every time. out of 12 hrs. it can occur up to 4times.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/113885/code-hangs-when-using-spi3/502396"]Do you need to use some external device (SPI device)?[/quote]
&lt;p&gt;Yeah, we need to use some external device. you can tell us what need to checked. will check that and update you.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502396?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 21:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da54c78-6734-4e1d-8adf-56d44f6b880a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;And is there any way for me to reproduce what you are seeing? Do you need to use some external device (SPI device)? Or can you do it just using a DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502395?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 21:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aa413d8-2bef-4bc2-b6df-3d696383f8e9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;And do you see the callstack that brought it there? It looks like it is waiting for the end of some transaction. Have you tried sending it an SPI message, just to see if it is possible to &amp;quot;kick it&amp;quot; out of that state? Not as a solution, but for debugging purposes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502359?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 16:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f2393d-01dd-4663-a67c-f94a1a476d82</guid><dc:creator>Madhukeshwar</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;the code hangs in&amp;nbsp;&amp;nbsp;the below line&lt;br /&gt;while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_END)){} in the file nrfx_spim.c&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/502309?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 12:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7223aef9-6690-42ba-bbc2-f3317c853d63</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so on what function does it hang? Is it waiting in a while loop? Or is it some function that doesn&amp;#39;t return?&lt;/p&gt;
&lt;p&gt;Are you checking the return values for your SPI calls? Does any of the functions return != 0 when the issue occurs?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/501949?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 13:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60511aee-986d-4d68-9a41-b144bb2f2a94</guid><dc:creator>Madhukeshwar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;when &amp;quot;the code hangs&amp;quot; device will not advertise. and it starts advertising only after reset. we don&amp;#39;t have screenshots. but we have debugged that where the issue is occurring. As mentioned in the statement. it is occurring when we try to communicate using SPI after step 5. but we are not getting why.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;this issue is not consistent. but it occurs within 12 hours.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code hangs when using SPI3</title><link>https://devzone.nordicsemi.com/thread/498164?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 06:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991495fb-188d-49b0-b974-d337019fc96f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What does it look like when &amp;quot;the code hangs&amp;quot; after initializing it in polling mode? Do you have any screenshots or logs? Some more information would be helpful.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>