<?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>SPI DFU Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34071/spi-dfu-bootloader</link><description>I&amp;#39;m trying to adapt the DFU bootloader to work with a SPI slave as the transfer mechanism, but I&amp;#39;m running into issues getting the SPI communication up and running. I&amp;#39;ve added a nrf_spi_dfu.c to the SDK and have configured everything so that it&amp;#39;s getting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 May 2018 19:47:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34071/spi-dfu-bootloader" /><item><title>RE: SPI DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/132140?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 19:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:121769ea-e72c-4aad-b130-a96700a507a6</guid><dc:creator>klockhart</dc:creator><description>&lt;p&gt;I&amp;#39;ve changed a few things since posting this, so there may be more complexity, but it seems like the crux of this issue was not enabling deferred logging. Presumably, printing out the logs was taking long enough/at the right time, to block the SPI from seeing the incoming signals from the master to allow it to send out data. Setting NRF_LOG_DEFERRED in sdk_config.h enabled the SPI slave to start sending out data successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/131673?ContentTypeID=1</link><pubDate>Fri, 11 May 2018 07:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056564d4-5a6b-4470-81d9-60443374be38</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Also, from where you init the SPI, do you check whether it returns NRF_SUCCESS? (nrf_drv_spis_init() returns NRF_SUCCESS?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/131671?ContentTypeID=1</link><pubDate>Fri, 11 May 2018 07:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4996f33c-0f1d-4b6f-8638-6d8c59e238f8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am terribly sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see something obviously wrong with your setup.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you getting any events at all?&lt;/p&gt;
&lt;p&gt;Have you tried to add:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (event.evt_type == NRF_DRV_SPIS_XFER_DONE)
{
    ...
}
else
{
    NRF_LOG_DEBUG(&amp;quot;SPI error, event %d&amp;quot;, event.evt_type);
}&lt;/pre&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></channel></rss>