<?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>Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17341/some-problems-about-dfu-via-uart</link><description>Hello, 
 A problem occurs when i run the DFU over UART on my board.My bootloader project references to nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\pca10028\dual_bank_serial_s110 
 Here is my steps: 
 1、Configure TX、RX pins;Modify the UART mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Oct 2016 13:55:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17341/some-problems-about-dfu-via-uart" /><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66644?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2016 13:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946b946c-8cf2-4603-9f21-953433482310</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;How have you connected the USB-TTL cable to your PCA10028? Have you altered the TX and RX pins to in the nrf_drv_config.h file to match the pins you&amp;#39;re using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66643?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2016 06:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3198fbbf-ae88-45aa-bf76-7e7d3f20d856</guid><dc:creator>DonWoo</dc:creator><description>&lt;p&gt;@bjorn-spockeli&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I try as your suggest,but still get the invalid ACK;&lt;/li&gt;
&lt;li&gt;Is there any other I can do.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66646?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2016 02:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a59211-319f-4800-902a-8dc6fd94d4e1</guid><dc:creator>DonWoo</dc:creator><description>&lt;p&gt;@coolnumber9&lt;/p&gt;
&lt;p&gt;hi,coolnumber9,ths for your share.
1.the config files I used locate in nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\config\dfu_dual_bank_serial_s110_pca10028\hci_transport_config.h and nRF51_SDK_9.0.0_2e23562\examples\bsp\pca10028.h.
2.I use USB-TTL and LOGIC ANALYZER to get the digital signals.
BTW,I AM STILL STUCK .haha.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66642?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 09:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b5426f-bfab-4070-b7fb-cd09ceedba1b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@coolnumber9: Yes, I think that is a good idea. Could you post the link to the new question in your nest comment? Also it would be great if you could share your modified bootloader project. If it is confidencial, you can create a case in our closed-support system &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;Mypage&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66641?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 09:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b68972f-5a02-4c7a-a09f-eff2a60e27de</guid><dc:creator>coolnumber9</dc:creator><description>&lt;p&gt;@bjorn-spockeli: Let me know if I should be posting my problem as a different question. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66640?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 09:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca3ff67-3fd7-4aa6-afb5-5c64f8c0f38b</guid><dc:creator>coolnumber9</dc:creator><description>&lt;p&gt;@bjorn-spockeli :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When the pre-built serial bootloader hex from SDK v11.0.0 are used, no problem encountered. The device was programmed successfully.&lt;/li&gt;
&lt;li&gt;Then, i modified the serial bootloader example for our specific need. Rebuilt the hex file and loaded it on the nRF52 (PCA10040) devkit. This is when the problem happened shown in the screenshots in my previous comment.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66639?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 09:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4acd46-eca6-4c0e-83db-2c6d93b37d4a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@coolnumber9: Are you using one of the serial bootloaders from SDK v11.0.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66638?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 08:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e557b922-696c-48ff-b10f-5276b12f69fe</guid><dc:creator>coolnumber9</dc:creator><description>&lt;p&gt;@donwoo, @bjorn-spockeli : Here are my screenshots...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://coolnumber9.github.io/DFU_Serial.png"&gt;DFU Serial on command line&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://coolnumber9.github.io/sniff_data.png"&gt;UART Sniffed Data&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66637?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 08:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b98938-4879-4046-9999-f89bbe1bb889</guid><dc:creator>coolnumber9</dc:creator><description>&lt;p&gt;@bjorn-spockeli : I tried to edit the python script (class &lt;strong&gt;DfuTransportSerial&lt;/strong&gt; in &lt;strong&gt;dfu_transport_serial.py&lt;/strong&gt;):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DEFAULT_SERIAL_PORT_TIMEOUT = 5.0 #(Original is 1.0)
ACK_PACKET_TIMEOUT = 5.0 #(Original is 1.0)
SEND_INIT_PACKET_WAIT_TIME = 5.0  #(Original is 1.0)
SEND_START_DFU_WAIT_TIME = 15.0 #(Original is 10.0)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Adjusted the timeouts but still the same problem after nrfutil sends the application firmware file (512 KB). &amp;quot;Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66645?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 08:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0207302-584d-4265-8514-89d615f95c22</guid><dc:creator>coolnumber9</dc:creator><description>&lt;p&gt;@donwoo, I&amp;#39;m experiencing similar problem. When you configured your TX, RX, and Flow Control, are you modifying &lt;strong&gt;nrf_drv_config.h&lt;/strong&gt; (&lt;em&gt;from components/drivers_nrf/config/nrf_drv_config.h&lt;/em&gt;)? Or were you using another config file? I&amp;#39;m just making sure also that I am modifying the correct file as I&amp;#39;m doing similar but my SoC is &lt;strong&gt;nRF52832&lt;/strong&gt;. What is your debug setup and tool you used to get the UART signals? I&amp;#39;m only using USB-TTL and monitoring the data through HTERM on both RX and TX lines but didn&amp;#39;t get the &lt;strong&gt;invalid ACK&lt;/strong&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some problems about DFU via UART</title><link>https://devzone.nordicsemi.com/thread/66636?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2016 11:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dfe8739-8028-4c60-8338-c0fbb5b77f8b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;There are some timing considerations that must be taken in to account on the host side when using the serial bootloader. I suggest that you take a look at &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/nordicsemi/dfu/dfu_transport_serial.py"&gt;this&lt;/a&gt; python script from pc-nrfutil, which is used to perform serial DFU. Around line 60 you&amp;#39;ll see several the definitions of several delays, e.g. how long you should wait before sending more data over the UART after you have sent the start packet.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>