<?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 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22844/nrf52-secure-uart-dfu-sdk-13-0</link><description>Greetings, 
 I&amp;#39;m having trouble being able to perform a DFU with the secure serial DFU. My setup: 
 
 Using PCA10040 (nRF52832) with the s132_nrf52_4.0.2_softdevice.hex 
 SDK v13.0.0, Keil v5.20, on a Windows 8 PC 
 nRFgo Studio 1.21.2.10 
 experimental_bootloader_secure_serial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Jun 2017 05:00:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22844/nrf52-secure-uart-dfu-sdk-13-0" /><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89818?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 05:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74607191-00fc-4768-9dae-4e71547941ff</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;@Bjorn, thanks for the clarification. I&amp;#39;ll manage with 9600 baud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89819?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 11:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:861e964a-3d6f-495d-8f74-d5a5a4c27fe5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Q1: The bootloader was completely re-written from SKD 11 to SDK 12, so I thinks it because we&amp;#39;re sending larger objects.
Q2: No, we do not have a c library for the Host MCU side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89817?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 21:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c202703-d887-4fe0-91a4-ec4e05887e5a</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;Bjorn, do you also have a suggestion for my second question - is there a C library that allows another embedded device to send the DFU files via a serial port?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89816?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 21:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f70523-5ec9-407f-9ccf-f499aee3f403</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;Thanks Bjorn, the serial DFU is working at 9600 baud without flow control. Out of curiosity, what do you think the reason for having to reduce the baud rate to 9600 for this to work without flow control? The legacy bootloader worked fine for us at 38400 baud...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89815?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 08:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d997da4e-5808-420f-819d-b8c103ff7029</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You should be able to run the Secure Serial Bootloader without Flow Control with the modifications described in &lt;a href="https://devzone.nordicsemi.com/question/128224/sdk-1300-secure-serial-dfu-without-flow-control/"&gt;this&lt;/a&gt; answer. Note: I think you only have to apply the changes in the secure serial bootloader project and not modify the nrfutil source code since you can set the baudrate and enable/disable flowcontrol, which was not possible in previous versions of nrfutil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89814?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 02:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4feb76f4-2eeb-4757-b403-d7af03533012</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;I&amp;#39;ve since confirmed the secure bootloader works with hardware flow control (I needed to swap the control lines). However, I still have yet to get the bootloader working without flow control.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve uploaded a log of RTT debug messages with flow control enabled &lt;a href="https://www.dropbox.com/s/i4jrtsynlsrbpxw/dfu%20serial%20hfc.log?dl=0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Meanwhile the log of RTT debug messages without flow control (&lt;a href="https://www.dropbox.com/s/ci4ud5w7ihr9sw6/dfu%20serial%20no%20hfc.log?dl=0"&gt;here&lt;/a&gt;) also starts off with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;WARNING:Received unsupported OP code
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but eventually gives the following errors:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR:Error. Init command larger than expected
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;nrfutil also reports the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE
Expected: 0x03 Received: 0x31
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Suggestions for getting the secure UART bootloader working without flow control?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89813?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 01:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e231619-cf46-41c3-8abd-e520a7d8b2b6</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;I&amp;#39;ve got a bit further with nrfutil. I had to supply &amp;quot;-fc 0&amp;quot; as an argument - I suspect that without this, it has flow control enabled by default (why!?!)? Anyway, the command I enter is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil dfu serial -pkg dfu_test_app_hrm_s132.zip -p COM3 -fc 0 -b 115200
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Meanwhile, the bootloader still reports &amp;quot;Received unsupported OP code&amp;quot;, sends a response back (&amp;quot;Sending Response: [0x0, 0x3]&amp;quot;), then has a bunch of errors (&amp;quot;Error. Init command larger than expected&amp;quot; and &amp;quot;Failure to run packet write&amp;quot;), presumably because the nrfutil is trying to send the bootloader packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Secure UART DFU SDK 13.0</title><link>https://devzone.nordicsemi.com/thread/89812?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 23:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933cdf4e-6290-4704-899b-a2634e04f2ab</guid><dc:creator>rct42</dc:creator><description>&lt;p&gt;I&amp;#39;ve just noticed a very similar &lt;a href="https://devzone.nordicsemi.com/question/150901/bootloader_secure_serial-and-nrfgo-studio-not-working/"&gt;thread&lt;/a&gt;. In my case, I cannot use flow control and also require another embedded device to perform the DFU (but would like to get it working with nrfutil first)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>