<?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>How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23286/how-to-merge-serial-and-ble-dfu-without-flow-control</link><description>We wanted to implement both BLE and serial DFU on nRF52832 without serial flow control. The main procedure is as follows: 
 
 
 Use the Nordic BLE DFU example as a start point 
 
 
 Add nrf_serial_dfu.c to your project 
 
 
 Add other files related</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2019 11:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23286/how-to-merge-serial-and-ble-dfu-without-flow-control" /><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/224709?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 11:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092d32cb-4c47-40aa-8a03-e5d9e0198741</guid><dc:creator>hdadhich</dc:creator><description>&lt;p&gt;Thanks for the response, I&amp;#39;ll open a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/224679?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2672a7b2-bd48-4202-9dda-69ff83fc8d53</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hdadhich"&gt;hdadhich&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;can you please open a new question and then refer to this 2 year old question in your new question?&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><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/224669?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b95f6ad-6672-432f-9cc3-b1d3f086f593</guid><dc:creator>hdadhich</dc:creator><description>&lt;p&gt;Hi bjarn-spockeli, Can you please elaborate more on this?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m facing similar problem and saw that BLE_STACK_SUPPORT_REQD is set in Makefile.&lt;/p&gt;
&lt;p&gt;I assume with this both BLE and Serial will use sd_ -API yet I&amp;#39;m facing similar problem.&lt;/p&gt;
&lt;p&gt;I tried by disabling HWFC and setting baud rate to 9600 still no luck.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/121621?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 08:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f932fff1-99d1-47f0-9137-fd7ab0ccf4e8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;We have seen some issues with the nRF52 DK when using the serial bootloader without HWFC at higher baudrates than 9600. This is most likely due to the Segger J-Link OB interface MCU as the TX/RX lines are passed to the interface MCU which then forwards it on the CDC UART port. If you connect directly to the TX/RX pins of the nRF52832 using the pin headers and use a FTDI adapter to connect it to your computer, then you should be able to use higher baudrates.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/121617?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 08:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0dcfa9-fb49-4288-8d73-61d74d182262</guid><dc:creator>danni</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi, bjorn-spockeli, I use nRF52 DK do my test.&amp;nbsp;&amp;nbsp;when I disabled HWFC and config baud rate to 9600, it can success. &amp;nbsp;but I can&amp;#39;t &amp;nbsp;increase &amp;nbsp;baud rate to 115200 or higher. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/121536?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 14:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76ef081-0956-49bb-82ca-05ed5052cc2c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you using a nRF52 DK or is it a custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/120361?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 01:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f4682a2-2751-45dc-8a42-0747d4459ff2</guid><dc:creator>danni</dc:creator><description>&lt;p&gt;Hi, bjorn-spockeli, &amp;nbsp;when I disabled HWFC and config baud rate to 9600, UART DFU can success.&amp;nbsp;but when I used HWFC and config baud rate to 115200. UART DFU always failure. Could you help me&amp;nbsp;&lt;span&gt;analyzes why it always failure?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/120359?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 01:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9cfe6b-910d-49c5-a75b-f2bb9fa612fe</guid><dc:creator>danni</dc:creator><description>&lt;p&gt;Hi, Jason, &amp;nbsp;when I disabled HWFC and config baud rate to 9600, it can success. I wonder how you increase &amp;nbsp;baud rate to 115200 or higher?&lt;/p&gt;
&lt;p&gt;thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/120223?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 09:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d62f52c-4e68-4019-967f-0d09105a780a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, the serial bootloader is designed to be used without the SoftDevice, i.e. it uses the __WFE() instruction directly to enter sleep mode and uses the NVMC directly as opposed to using the sd_ - API. One easy solution could be to enable the SD regardless if you use the serial or BLE transport layer and then only use the sd_-API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/120196?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 02:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534b543f-29a5-435a-a0fb-2c11cf402e1f</guid><dc:creator>danni</dc:creator><description>&lt;p&gt;hi,bjorn,&lt;/p&gt;
&lt;p&gt;In sdk14.1.0, bootloader_secure_ble demo, when I add nrf_serial_dfu.c as Jason said above, however ,BLE DFU can success, UART DFU can&amp;#39;t.(I have flow control and baud&lt;span&gt; &lt;/span&gt;rate&lt;span&gt;&amp;nbsp;115200&lt;/span&gt;&amp;nbsp;)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1518057093068v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In order to find the error, In bootloader_secure_serial demo,when I only add BLE_STACK_SUPPORT_REQD into bootloader_secure_serial demo, then UART DFU demo can&amp;#39;t work, I found they have different &amp;nbsp;event wait function:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1518055818882v1.png" alt=" " /&gt; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when we enable BLE_STACK_SUPPORT_REQD in bootloader_secure_serial demo , there also have some differences in function nrf_dfu_flash_init(); I don&amp;#39;t know if these &lt;span&gt;differences &lt;/span&gt;cause UART DFU failure.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/120100?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 12:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666329cb-52ee-4f59-80cd-e46a348f3bfa</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;danni: Could you elaborate on what specifically goes wrong/doesnt work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/119620?ContentTypeID=1</link><pubDate>Sat, 03 Feb 2018 05:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de5c68b0-f54b-4f01-94f7-168540c19187</guid><dc:creator>danni</dc:creator><description>&lt;p&gt;Hi Jason, could you tell me which SDK do you used? In sdk13.0.0, I do as what you said, but UART DFU never success. thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to merge serial and BLE DFU without flow control?</title><link>https://devzone.nordicsemi.com/thread/91551?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 11:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cf8f2f-b76d-4008-b6f4-32be41bb9f90</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Jason, I sincerly apologise for the late reply. Have you made any progress regarding this issue? The Serial bootloader was designed to use flow control and we have therefore not done a lot of testing with higher baudrates. I agree that you should be able to automate the UART reception of the FW with DMA and PPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>