<?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>nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60991/nrf52-zephyr-dfu</link><description>Hi, I am trying to create DFU for nRF52 devices using NCS now that they are supported. I have done this previously with nRF5 SDK and it worked great. Now I do not see any examples in the samples folder of NCS and Zephyr to do such a thing. I found this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 May 2020 13:20:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60991/nrf52-zephyr-dfu" /><item><title>RE: nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/thread/248725?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 13:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ab3606-bf5c-4591-8472-d122e6e5ad52</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;&lt;br /&gt;Thank you for your reply. This is the approach I already started. Now I am trying to merge&amp;nbsp;&lt;strong&gt;smp_svr&lt;/strong&gt; application with&amp;nbsp;&lt;strong&gt;peripheral_uart&lt;/strong&gt; and get some useful app with buttonless DFU working.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you have some suggestions regarding that let me know.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In the meantime, I am waiting for your answer to the other question in the second issue.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/thread/248678?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 10:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b06e31-e0a9-4e1b-8eee-1be844c39ae7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;1) Yes.&amp;nbsp;MCUmgr / smp_svr is the preferred way to do DFU on nRF52 in NCS(&lt;em&gt;nRF Connect SDK&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;2) See the bulding and running steps here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html&lt;/a&gt;, for the application you want to DFU with, set&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/p&gt;
&lt;p&gt;3) Will be answered in the separate case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61048/signing-zephyr-images---west-sign"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61048/signing-zephyr-images---west-sign&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/thread/248203?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 13:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6961695e-08a7-40a9-b236-9f13215e9c58</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;I will move this to separate issue:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61048/signing-zephyr-images---west-sign"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61048/signing-zephyr-images---west-sign&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/thread/248174?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 12:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c643ee-6751-402c-a9b0-7e5561c82ed9</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;I was able to update (DFU) nrf52 chip over Android NRF Connect app without signing.&amp;nbsp;&lt;br /&gt;questions are:&lt;br /&gt;1. is this the preferred way of doing DFU on nrf52 (smp_svr sample)&amp;nbsp;&lt;br /&gt;2. do you have some samples to show this process?&lt;br /&gt;3. what could be the problem with signing, as I am using NCS v1.2.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Zephyr DFU</title><link>https://devzone.nordicsemi.com/thread/248150?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 11:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d970184-687f-41ed-a19b-41d44f0cba01</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Currnetly I am following guid of zephyr sample:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;But when I build an app with: west build -b nrf52_pca10040&lt;br /&gt;and then try to sign the build: west sign -t imgtool -- --key root-rsa-2048.pem&lt;br /&gt;like explained in the west sign doc:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/west/sign.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/west/sign.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I get an error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;=== image configuration:
partition offset: 49152 (0xc000)
partition size: 204800 (0x32000)
text section offset: 0 (0x0)
=== signed binaries:
bin: /home/voja/Documents/irnas/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/build/zephyr/zephyr.signed.bin
Usage: imgtool sign [OPTIONS] INFILE OUTFILE

Error: Invalid value for &amp;quot;-H&amp;quot; / &amp;quot;--header-size&amp;quot;: Minimum value for -H/--header-size is 32
FATAL ERROR: command exited with status 2: /home/voja/.virtualenvs/zephyenv/bin/imgtool sign --version 0.0.0+0 --align 4 --header-size 0 --slot-size 204800 --key root-rsa-2048.pem /home/voja/Documents/irnas/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/build/zephyr/zephyr.bin /home/voja/Documents/irnas/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/build/zephyr/zephyr.signed.bin&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I do not understand what is the problem with signing the image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>