<?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>Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109637/hardware-spi-dfu-from-one-nrf52840-to-another-nrf52840</link><description>Hello, 
 I was wondering if there is away to perform DFU using SPI without smp protocol or mcumgr from one nRF52840 to another? What I am trying to do is to send a firmware image (.bin file) from one chip to another via SPI, and then have MCUboot update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2024 13:12:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109637/hardware-spi-dfu-from-one-nrf52840-to-another-nrf52840" /><item><title>RE: Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/thread/494376?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 13:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd115c5f-a70c-4fb8-b958-6aee89401d65</guid><dc:creator>Viral Patel</dc:creator><description>&lt;p&gt;Hi Kevin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am planning to implement the same thing, were you able to implement this with any samples or other protocols?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Viral&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/thread/480270?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 15:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72fa09ad-346a-4588-a8db-e34a6428cc93</guid><dc:creator>kfci-eng</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks! I will follow that recommendation and use the DFU target library directly, I have been reading the API documentation. I appreciate your help!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/thread/477047?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 09:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f7a672d-9d37-4d2d-8f48-26745311be0d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;The method I mentioned in my previous reply uses &lt;span&gt;&lt;span dir="ltr"&gt;mcumgr-lib&lt;/span&gt;&lt;/span&gt;. In this case, you must implement the transport for both the SMP client and the SMP server. I would recommend taking a look here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/subsys/mgmt/mcumgr/transport"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/subsys/mgmt/mcumgr/transport&lt;/a&gt;. Additionally, you can also look at this unofficial sample: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/v2.2.0/bootloader_samples/client_smp/smp_client_uart"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/v2.2.0/bootloader_samples/client_smp/smp_client_uart&lt;/a&gt;. It is a modified version of the sample in my previous reply, and it uses UART instead of Bluetooth as transport.&lt;/p&gt;
&lt;p&gt;The other option is to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/libraries/dfu/dfu_target.html"&gt;DFU target library&lt;/a&gt;. With this, you can implement the SPI however you like on the client and use the DFU target library on the server side to handle the image received over SPI.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/thread/476307?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 18:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c311dc9-ccb9-43ef-b98b-77de6cf7d5e1</guid><dc:creator>kfci-eng</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I went over the sample but it is challeging to me to understand how I could modify or change the sample to use SPI as the transport layer. Is there any sample that performs DFU from one DK to another using Hardware UART (No USB, shell, etc). I think that would be very helpful. I have been looking on the devzone and on the ncs github but haven&amp;#39;t found any.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardware SPI DFU from one nRF52840 to another nRF52840.</title><link>https://devzone.nordicsemi.com/thread/475890?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 12:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3bfc246-a571-4a5e-ba73-caeee99c7b1e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;It should be possible to perform DFU over SPI, but we do not have any guides or information on how to do this. One option is to use SMP and implement the SPI transport layer yourself, but this will require work on your side. &lt;/p&gt;
&lt;p&gt;A colleague has made some unofficial bootloader samples that you can take a look at: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples&lt;/a&gt;. You can find examples of performing DFU from one nRF52840 DK to another using BLE there. The samples use the Zephyr mcumgr driver for transport, so you would only need to implement the SPI transport layer once. Please note that these examples are unofficial and provided as-is.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>