<?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>Problem with UART DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15335/problem-with-uart-dfu</link><description>Hi, 
 I&amp;#39;m trying to test the DFU over HCI included in the SDK examples but I can&amp;#39;t make it work. This is all the information of the environment I&amp;#39;m using: 
 
 SDK: 10.0.0 
 Board: nRF51-DK 
 Softdevice: s130 
 Memory allocation: dual bank 
 OS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2016 10:55:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15335/problem-with-uart-dfu" /><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58609?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 10:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c46419-04c4-4bbd-9c98-13f53ce9df62</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Grandgogo: What do you mean ? Do you mean if you generate the hex file from keil it worked fine ? I&amp;#39;m a little bit confused on what works and what doesn&amp;#39;t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58608?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 00:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e577220-1333-4420-bce8-1ff29cdc9cbe</guid><dc:creator>GrandGogo</dc:creator><description>&lt;p&gt;@Hung was able work with different sample .hex files generated from keil(pca10040, with soft device 132 ),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58615?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2016 10:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec83e03d-9947-4261-9974-4204c6213150</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@GrandGoGo: Could you send me the hex file so I can test here ? Would the nRFGo Studio works with any file (for example the example hex file in the SDK mentioned in the question ? )
It&amp;#39;s a little bit strange because under the hood, nRFGo Studio use nrfutil to do DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58614?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 18:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bbe3954-50bf-402b-99c3-a18104a0cfc9</guid><dc:creator>GrandGogo</dc:creator><description>&lt;p&gt;@Hung&lt;/p&gt;
&lt;p&gt;Could you let me know which hardware board you are testing with ?
PCA10040&lt;/p&gt;
&lt;p&gt;Do you see LED 3 turned on when the bootloader start ?
LED 3 on in bootloader mode&lt;/p&gt;
&lt;p&gt;You can try to read out the flash and send me the hex so I can test here ?
how i can send the complete flash data&lt;/p&gt;
&lt;p&gt;**When i am using zip file provided in SDK getting below error **&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Nordic Semiconductor\nRFgo Studio&amp;gt;nrfutil.exe dfu serial --package=E:\fw\nRF5_SDK_11.0.0_89a8197\examples\dfu\hci_dfu_send_hex\test_images_dual_bank_update_nrf52\dfu_test_app_hrm_s132.zip --port=COM4 --baudrate=38400&lt;/p&gt;
&lt;p&gt;Upgrading target on COM4 with DFU package E:\fw\nRF5_SDK_11.0.0_89a8197\examples\dfu\hci_dfu_send_hex\test_images_dual_bank_update_nrf52\dfu_test_app_hrm_s132.zip. Flow control is disabled.
[------------------------------------]    0%Timed out waiting for acknowledgement from device.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;From nRFGO application when i provide hex file its working fine :&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;STATUS: C:/Program Files (x86)/Nordic Semiconductor/nRFgo Studio/nrfutil.exe dfu genpkg C:/Users/Gogo/AppData/Local/Temp/TempDFUPackage_Mn9260.zip --sd-req 0xFFFE --application-version 0 --dev-type 0 --dev-revision 0 --application&lt;/p&gt;
&lt;p&gt;E:/fw/nRF5_SDK_11.0.0_89a8197/examples/dfu/hci_dfu_send_hex/test_images_dual_bank_update_nrf52/dfu_test_app_hrm_s132.hex&lt;/p&gt;
&lt;p&gt;STATUS: Zip created at C:/Users/Gogo/AppData/Local/Temp/TempDFUPackage_Mn9260.zip
STATUS: C:/Program Files (x86)/Nordic Semiconductor/nRFgo Studio/nrfutil.exe dfu serial --package=C:/Users/Gogo/AppData/Local/Temp/TempDFUPackage_Mn9260.zip --port=COM4 --baudrate=38400&lt;/p&gt;
&lt;p&gt;STATUS: Upgrading target on COM4 with DFU package&lt;/p&gt;
&lt;p&gt;C:\Users\Gogo\AppData\Local\Temp\TempDFUPackage_Mn9260.zip. Flow control is disabled.
STATUS: Device programmed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58613?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 12:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca35fb5-c453-4e44-84a7-ca12b54c51c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I guess a UART port sniffer may help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58612?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 11:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cd21f05-ae8d-450b-94a3-0b0ed2af482f</guid><dc:creator>Crespum</dc:creator><description>&lt;p&gt;I tried using &lt;code&gt;nrfutil&lt;/code&gt; in  a Windows machine and it worked. This means there is probably an issue with the serial port configuration in Linux, but I couldn&amp;#39;t solve it yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58611?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 11:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dca31de3-42ac-4452-a564-239c93214efc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@GrandGogo: Could you let me know which hardware board you are testing with ?&lt;/p&gt;
&lt;p&gt;Do you see LED 3 turned on when the bootloader start ?&lt;/p&gt;
&lt;p&gt;You can try to read out the flash and send me the hex so I can test here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58610?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2016 02:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e49422-9a06-47f1-bbe8-15ab80b2dbb2</guid><dc:creator>GrandGogo</dc:creator><description>&lt;p&gt;Even i am facing the similar issue on windows as crespum,&lt;/p&gt;
&lt;p&gt;Setup :&lt;/p&gt;
&lt;p&gt;Device         : nRF52 -DK
SoftDevice   : s132_nrf52_2.0.0_softdevice.hex
BootLoader  : dual_bank_serial_s132 (build in keil)&lt;/p&gt;
&lt;p&gt;Command :
nrfutil.exe  --verbose dfu serial --package=E:\dfu_test_app_hrm_s132.zip --port=COM4 --baudrate=38400 --flowcontrol&lt;/p&gt;
&lt;p&gt;Upgrading target on COM4 with DFU package E:\dfu_test_app_hrm_s132.zip.
Flow control is enabled.
[------------------------------------]    0%Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 20360
Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.&lt;/p&gt;
&lt;p&gt;Timed out waiting for acknowledgement from device.&lt;/p&gt;
&lt;p&gt;Even i am facing the similar issue on windows as crespum,
Setup :
Device : nRF52 -DK SoftDevice : s132_nrf52_2.0.0_softdevice.hex BootLoader : dual_bank_serial_s132 (build in keil)
Command : nrfutil.exe --verbose dfu serial --package=E:\dfu_test_app_hrm_s132.zip --port=COM4 --baudrate=38400 --flowcontrol
Upgrading target on COM4 with DFU package E:\dfu_test_app_hrm_s132.zip. Flow control is enabled. [------------------------------------] 0%Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 20360 Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
Timed out waiting for acknowledgement from device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58606?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 11:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:affbde4b-0d99-444d-a6ed-4b539ede964c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Crespum: I just tested by following the same steps on a Windows machine and DFU process was fine. My nrfutil on Windows was v0.3 but I don&amp;#39;t think there is much change in v0.5.&lt;/p&gt;
&lt;p&gt;You may need to sniff what happens on the UART lines or debug the bootloader to see where it stuck. Could you check if LED 3 is ON  ?
To enable debugging with bootloader you can have a look at question F &lt;a href="https://devzone.nordicsemi.com/blogs/685/common-faq-on-dfu/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58607?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2016 15:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0803b65f-a079-4e56-a777-ec6aaa639084</guid><dc:creator>Crespum</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried the UART example and it works on both directions (RX/TX). I&amp;#39;ve also tried to program the SD before the bootloader without any luck.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also sure the bootloader is starting because I successfully tried to switch the default LED. Nevertheless it hangs at some point because the LED never turns off as it should after the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with UART DFU</title><link>https://devzone.nordicsemi.com/thread/58605?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2016 09:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d9912b6-3606-4e1c-b334-2a358f2094ea</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Crespum:&lt;/p&gt;
&lt;p&gt;Have you test and make sure UART worked normally ? There is an UART example in this folder: \examples\peripheral\uart&lt;/p&gt;
&lt;p&gt;Could you try to program the softdevice before programming the bootloader ? Have you made sure the bootloader started properly ? You can check by printing out something from the bootloader on UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>