<?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>SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33982/sdk-15-software-crash-during-spi-session</link><description>Hi 
 After migration from SDK 14.0.0 to 15.0.0 our FW crashes during SPI session 
 We use EasyDMA , so we use SPIM driver directly without wrapper nrf_drv_spi 
 The crash occurs in spim_xfer function, immediately after spim_int_enable function calling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 12:46:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33982/sdk-15-software-crash-during-spi-session" /><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/216375?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 12:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8885f2a-26e2-4019-bfc9-d998523d5b03</guid><dc:creator>Dan Halbert</dc:creator><description>&lt;p&gt;A few more notes here for anyone else reading: the errata mentions using a separate RAM &amp;quot;block&amp;quot;, and it appears from the datasheet that a block includes both section 0 and section 1, so using two sections in the same block won&amp;#39;t help (t_prachar used separate blocks).&lt;/p&gt;
&lt;p&gt;Also see this support case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52829/errata-198-has-additional-restrictions-and-resource-implications"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52829/errata-198-has-additional-restrictions-and-resource-implications&lt;/a&gt;, which notes that if you use dcx, then the command and data buffers must also be in separate blocks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/216256?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 00:17:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f674b11-050e-4a72-820f-de4655725c1b</guid><dc:creator>t_prachar</dc:creator><description>&lt;p&gt;Creating a dedicated transfer buffer for SPIM3 transfers and locating it in RAM3.section1, and having our app RAM start at RAM5.section0 seems to resolve the issue.&amp;nbsp; I&amp;#39;ve removed the 198 workaround from CFLAGS.&amp;nbsp; SD140 and SPIM3 both seem to work now as expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;source file:&lt;/p&gt;
&lt;p&gt;uint8_t rx_buf[RX_BUF_SIZE] __attribute__((section(&amp;quot;.spim3_safe&amp;quot;)));&lt;br /&gt;uint8_t tx_buf[TX_BUF_SIZE] __attribute__((section(&amp;quot;.spim3_safe&amp;quot;)));&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;.LD file:&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0xda000&lt;br /&gt; RAM_SPIM3 (rwx) : ORIGIN = 0x20007000, LENGTH = 0x03000&lt;br /&gt; RAM (rwx) : ORIGIN = 0x2000A000, LENGTH = 0x35F00&lt;br /&gt; RAM_NOINIT (rwx) : ORIGIN = 0x2003FF00, LENGTH = 0x00100&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;SECTIONS&lt;br /&gt;{&lt;br /&gt; . = ALIGN(4);&lt;br /&gt; .spim3_safe (NOLOAD) :&lt;br /&gt; {&lt;br /&gt; } &amp;gt; RAM_SPIM3&lt;br /&gt; .mem_section_dummy_ram :&lt;br /&gt; {&lt;br /&gt; }&lt;br /&gt; .log_dynamic_data :&lt;br /&gt; {&lt;br /&gt; PROVIDE(__start_log_dynamic_data = .);&lt;br /&gt; KEEP(*(SORT(.log_dynamic_data*)))&lt;br /&gt; PROVIDE(__stop_log_dynamic_data = .);&lt;br /&gt; } &amp;gt; RAM&lt;br /&gt; .fs_data :&lt;br /&gt; {&lt;br /&gt; PROVIDE(__start_fs_data = .);&lt;br /&gt; KEEP(*(.fs_data))&lt;br /&gt; PROVIDE(__stop_fs_data = .);&lt;br /&gt; } &amp;gt; RAM&lt;br /&gt; .noinit (NOLOAD) :&lt;br /&gt; {&lt;br /&gt; } &amp;gt; RAM_NOINIT&lt;/p&gt;
&lt;p&gt;} INSERT AFTER .data;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/216253?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 23:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44e89321-8d41-4094-8b83-565742618c6c</guid><dc:creator>Dan Halbert</dc:creator><description>&lt;p&gt;We also have seen this again, in a different context, but haven&amp;#39;t had time to create a simple test program. The anomaly 198 workaround must be enabled to produce the failure.&lt;/p&gt;
&lt;p&gt;Just now I found this in &lt;strong&gt;release_notes.txt&lt;/strong&gt; for SDK 15.3.0, under known issues, there&amp;#39;s this warning:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;- The workaround for Anomaly 198 for nRF52840 SPIM3 peripheral that has been implemented in nrfx_spim cannot be used with a SoftDevice.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Flag NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED must be set to zero.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; The workaround based on a dedicated RAM block for SPIM3 must be used instead.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/216252?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 23:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6000c7a0-2b3d-4b90-854d-be1ff21a8a92</guid><dc:creator>t_prachar</dc:creator><description>&lt;p&gt;I&amp;#39;d like to re-open this thread.&amp;nbsp; In our system we are using SPIM3 under SDK15.0 on nRF52840 and it&amp;#39;s been working fine with no issues.&amp;nbsp; But, we start SD140, the first attempt to call nrfx_spim_xfer() will cause a hard fault.&amp;nbsp; If the SD140 isn&amp;#39;t initialized, then everything works perfectly.&amp;nbsp; SPIM3 has been fully initialized before the SD140 is started.&lt;/p&gt;
&lt;p&gt;Looking at the resource usage document for SD140 6.0.0, it shows SPIM3 as completely open, so this behavior is unexpected.&lt;/p&gt;
&lt;p&gt;Perhaps an issue with interrupts or DMA?&lt;/p&gt;
&lt;p&gt;From sdk_config.h:&lt;/p&gt;
&lt;p&gt;#define NRFX_SPIM3_ENABLED 1&lt;br /&gt;#define NRFX_SPIM_EXTENDED_ENABLED 0&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;CFLAGS += -DNRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/157500?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 12:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ea0f12-681b-4260-8a9b-440c4e825bde</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Thank you for the update!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/157467?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 10:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5049d5e4-3d20-4bbf-879c-0c39da91e8d1</guid><dc:creator>Elkana</dc:creator><description>&lt;p&gt;Michao and I found the problem - it was in our code.&lt;/p&gt;
&lt;p&gt;We used to&amp;nbsp;take FreeRTOS semaphore before OS Scheduler running and somehow it caused a fault.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We used to trigger the SPIM&amp;nbsp;and wait in a loop for FreeRTOS semaphore until the completion callback&amp;nbsp;gives it.&lt;br /&gt;The problem was calling this code before FreeRTOS scheduler was run.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I still don&amp;#39;t know why the hard fault (taking semaphore per-se doesn&amp;#39;t do that), but replacing the semaphore with nrf_delay_us(..) in case scheduler not running solved the issue.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
//
// ...        
//
    context-&amp;gt;busy = true;
    
    // init the context as non-blocking SPI
    if (NRF_SUCCESS != nrfx_spim_init(context-&amp;gt;spi,
                                        &amp;amp;context-&amp;gt;spi_config,
                                        xfer_complete_handler,
                                        context))

    {
        return 0;
    }

    xfer_desc.p_tx_buffer = write_buf;
    xfer_desc.tx_length =len;
    xfer_desc.p_rx_buffer = read_buf;
    xfer_desc.rx_length = len;
    
    // start SPI xfer
    if (NRF_SUCCESS != nrfx_spim_xfer (context-&amp;gt;spi,
                                       &amp;amp;xfer_desc,
                                       0))
    {
        return 0;
    }
            
    while (context-&amp;gt;busy)
    {
        //
        // !! this code block was wrong !!
        //
        
        // wait for xfer-complete
        if (xTaskGetSchedulerState() == taskSCHEDULER_RUNNING)
            xSemaphoreTake(context-&amp;gt;tx_ready, SPI_MAX_BLOCKING_WAIT_TIME);
        else
            nrf_delay_us(10);
    }        

    spi_uninit(context);
}        

//
// ...        
//

static void spi_uninit(spi_context_t* context)
{
    nrfx_spim_uninit(context-&amp;gt;spi);
    
    // fix SPIM3 current usage - according to errata 195
    // http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.rev1.errata%2Fanomaly_832_17.html
    if (context-&amp;gt;spi == &amp;amp;g_spi_3_instance)
    {
        *(volatile uint32_t *)0x4002F004 = 1;
    }
}        &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/152819?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 09:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:099ae47d-15ed-481d-9f7c-4bbadd580b2b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried to play around with S140 v6.1.0 and the SPIM, but I wasn&amp;#39;t able to recreate you problem with this little to go on. If you don&amp;#39;t think your problem is related to the original issue in this thread, can you please open a new thread and make summary of what you experience and what you have tried? Can you also try to do a DEBUG build as user &amp;quot;arturo182&amp;quot; suggests in your github link (and as I was trying to suggest with my own link earlier)?&amp;nbsp;A lot of the code in the Nordic universe&amp;nbsp;uses the&amp;nbsp;&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_error.html?cp=4_0_0_3_13"&gt;Error module&lt;/a&gt;&amp;nbsp;which resets your MCU on asserts unless you explicitly tell it otherwise.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/152733?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 15:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2376adf3-7837-4a08-8f04-b532dc7229c0</guid><dc:creator>Dan Halbert</dc:creator><description>&lt;p&gt;We were using SPIM3 on the nRF52840. One of our users discovered that if we&amp;nbsp;disable SPIM3 in nrfx_config.h and use SPIM2 instead, the problem does not occur. This contrasts with MichaO&amp;#39;s problem, which already has SPIM3 disabled.&lt;/p&gt;
&lt;p&gt;This issue is being discussed here:&amp;nbsp;&lt;a href="https://github.com/adafruit/circuitpython/issues/1222"&gt;github.com/.../1222&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/152623?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 08:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf80d8a-c03e-4ccf-bba4-bf63c6f8feb9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not to my knowledge.&amp;nbsp;If your system resets it is most likely recovering from a hard fault or (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;dependent on your compilation settings&lt;/a&gt;) an assert.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/152568?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 03:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6150b4e3-21c3-4700-acc0-72bdd0b18cb5</guid><dc:creator>Dan Halbert</dc:creator><description>&lt;p&gt;Michao and MartinBL,&lt;/p&gt;
&lt;p&gt;Was the cause of this problem ever diagnosed? Thanks.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve seen what sounds like the same problem with the nRF52840 DK, using SD140 v6.1.0, and nrfx v1.3.1. We are not using the full SDK, only nrfx. After we advertise a BLE peripheral, a spim_xfer() causes what appears to be a reset. If we create the peripheral but don&amp;#39;t advertise, the problem does not occur. The problem occurs with SPIM, but not with TWIM or UART peripherals.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a C test case right now because the code that causes this is written in CircuitPython, which is implemented as described above. But I could probably work one up if necessary.&lt;/p&gt;
&lt;p&gt;I set the HardFault_Handler to loop on a fault, so I could get a backtrace, but the handler doesn&amp;#39;t appear to be entered, so I&amp;#39;m not sure what&amp;#39;s causing the reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/135348?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 11:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf1751f-2d20-4c5f-827f-9be2f335037f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Solved here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/135347?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 11:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6b5f2a7-c58b-4d30-ac39-e13c2cbf5adf</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Solved here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/134919?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 11:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce14a416-91e7-4e31-bbb7-0d1ecc51a562</guid><dc:creator>stone.xiang</dc:creator><description>&lt;p&gt;Hi MartinBL,&lt;/p&gt;
&lt;p&gt;I met the same crash when spim transfer on NFR52810, could you please help me, I spent a lot of time on this issue.&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/134820?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 04:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa4def3-4d6d-4415-96ec-2bb1a739831a</guid><dc:creator>stone.xiang</dc:creator><description>&lt;p&gt;Hi Michao,&lt;/p&gt;
&lt;p&gt;I met the same crash problem on NRF52810, do you find the reason why it will crash and how to solve this problem? add a delay?&lt;/p&gt;
&lt;p&gt;Regards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130822?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 13:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a5c712-e79f-4796-bcac-004a564a5f18</guid><dc:creator>MartinBL</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Have you tried without the Softdevice?&lt;/li&gt;
&lt;li&gt;Can you upload your project? Or at least the SPIM related parts? We can make the case private if you want confidentiality.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130816?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 13:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fde7ee-3b7b-40b5-85b8-b274a764c4b0</guid><dc:creator>MichaO</dc:creator><description>&lt;p&gt;It&amp;#39;s true. We&amp;#39;ve flashed the Softdevice to our device ( in fact it&amp;#39;s EB &amp;nbsp;nRF52840-Preview-DK), but haven&amp;#39;t called its API functions and not initialized it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130774?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 10:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f184806-e1a3-44d1-9ccf-476746b7cb21</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Does it mean that you have flashed the Softdevice to your device, but not initialized BLE at all? You said above that you are using a Softdevice.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130760?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 08:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e005dff8-25ac-468e-86f0-f86b547d4a03</guid><dc:creator>MichaO</dc:creator><description>&lt;p&gt;1. Yes, we are using the nRF52840&lt;/p&gt;
&lt;p&gt;2. Softdevice version is S140 v6.0.0&lt;/p&gt;
&lt;p&gt;3. This is happening on every call&lt;/p&gt;
&lt;p&gt;4. We still didn&amp;#39;t add BLE functionality to our project, so we are not advertising, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130729?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 07:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fea22eac-b23f-49b2-a664-b2738c5d5855</guid><dc:creator>MartinBL</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Can you confirm that you are using the nRF52840?&lt;/li&gt;
&lt;li&gt;What Softdevice version is this? S140 v6.0.0?&lt;/li&gt;
&lt;li&gt;Is this happening on every call to&amp;nbsp;spim_xfer? Or just once in a while?&lt;/li&gt;
&lt;li&gt;What else is going on at the time? Are you advertising, in a connection, etc.? Are you using the time slot API?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The PC indicates that something goes wrong inside the Softdevice.&amp;nbsp;The more context we get, the easier it will be to figure out why it asserts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130629?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 14:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595fbb55-326e-40ef-9b9a-dad6d95116a3</guid><dc:creator>MichaO</dc:creator><description>&lt;p&gt;1. I get a hard fault.&amp;nbsp; PC&amp;nbsp; register&amp;nbsp; in&amp;nbsp; fault_info is 0x0000064B&lt;/p&gt;
&lt;p&gt;2. The minimum delay I have to add is 120 microseconds.&lt;/p&gt;
&lt;p&gt;3. SPIM configuration is as follows:&lt;/p&gt;
&lt;p&gt;NRFX_SPIM_ENABLED &amp;nbsp;1&lt;br /&gt;NRFX_SPIM0_ENABLED&amp;nbsp; 1&lt;br /&gt;NRFX_SPIM1_ENABLED&amp;nbsp; 1&lt;br /&gt;NRFX_SPIM2_ENABLED&amp;nbsp; 1&lt;br /&gt;NRFX_SPIM3_ENABLED&amp;nbsp; 0&lt;br /&gt;NRFX_SPIM_EXTENDED_ENABLED 0&lt;br /&gt;NRFX_SPIM_MISO_PULL_CFG&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY&amp;nbsp; 7&lt;br /&gt;NRFX_SPIM_CONFIG_LOG_ENABLED 0&lt;br /&gt;NRFX_SPIM_CONFIG_LOG_LEVEL&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;NRFX_SPIM_CONFIG_INFO_COLOR&amp;nbsp; 0&lt;br /&gt;NRFX_SPIM_CONFIG_DEBUG_COLOR 0&lt;br /&gt;NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0&lt;/p&gt;
&lt;p&gt;p_config parameter of nrfx_spim_init function as follows:&lt;/p&gt;
&lt;p&gt;p_config-&amp;gt;sck_pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=0x13&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;mosi_pin &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =0x14&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;miso_pin &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =0x15&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;ss_pin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =0xFF&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;ss_active_high&amp;nbsp; =0&amp;nbsp;&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;irq_priority&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =0x07&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;orc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =0xFF&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=NRF_SPIM_FREQ_4M&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =NRF_SPIM_MODE_0&amp;nbsp;&lt;br /&gt;p_config-&amp;gt;bit_order&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =NRF_SPIM_BIT_ORDER_MSB_FIRST&lt;/p&gt;
&lt;p&gt;4. Interrupt priority is 7&lt;/p&gt;
&lt;p&gt;5. We are using a Softdevice&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 15 software crash during SPI session.</title><link>https://devzone.nordicsemi.com/thread/130572?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd1fcdd-953f-4242-8925-fea6c02625d9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What do you mean by crash? Do you get a hard fault or just some sort of assert? Are you debugging like &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this&lt;/a&gt;?&lt;/li&gt;
&lt;li&gt;How long is the delay that you add?&lt;/li&gt;
&lt;li&gt;How do you configure the SPIM?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;What kind of interrupt priority does the SPIM use?&lt;/li&gt;
&lt;li&gt;Are you using a Softdevice?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>