<?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>SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28077/sdk-13-0-0-secure-serial-dfu-without-flow-control</link><description>I am using a bootloader based on the secure serial DFU bootloader example in SDK 13 and tested it on a development kit. I noticed that hardware flow control is enabled in both the bootloader code and the nrfutil Python code. However, the custom hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Dec 2017 17:26:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28077/sdk-13-0-0-secure-serial-dfu-without-flow-control" /><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110635?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 17:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03d0e05e-4496-4f6e-a258-b63f41096876</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;OK, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110638?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 00:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00736edd-5e46-4cc3-82cc-882ea3d07263</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Joe,  what I did to fix the problem is described in the comment above, following &amp;quot;EDIT:&amp;quot;.  Hope that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110637?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 23:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9a0336-e4c2-45dd-9cf6-79034b42adf8</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hi Jason, I have encountered the same error &amp;quot;no setup.py&amp;quot;. Did you do something extra to make it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110634?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 16:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf290dab-806c-4938-9a8e-96974e6df7f7</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;I did get it to work!  Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110636?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 14:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f85ac63b-31ca-4ba5-8f70-0f640629078b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@jhendr (Jason Hendrix): So you managed to get it to work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110633?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 20:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7e44df8-aa7e-4fd9-9bf2-64519db4afc5</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;EDIT: I found it.  From the install directory /usr/lib/python2.7/site-packages/nordicsemi (in my case), run&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pip install -r setup.py
pip install -r requirements.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then run the build command as described from the same directory.&lt;/p&gt;
&lt;p&gt;Hi Bjorn,
I&amp;#39;ve just installed nrfutil version 3.4.0 on my  embedded linux system using &amp;quot;pip install nrfutil&amp;quot;.  I&amp;#39;ve made the edits required, but when I try &amp;quot;python setup.py build&amp;quot;, I get an error that no setup.py file exists.  Has that file name changed, or do I need to find it somewhere...?  Please advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110632?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2017 20:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c06e7b-fd36-4c92-9ba3-0e8b61069002</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;Hi tvdstaaij, I am trying to do the same using a custom board with no luck It. I followed the steps by
Bjørn to disable the hardware flow control and still it is not working :(&lt;/p&gt;
&lt;p&gt;I am using just TX/RX connected a nRF52832. I repeat all the process using the DK module and it works  but not in the custom board (it was working fine the only issue is with the Serial DFU)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 13.0.0: Secure serial DFU without flow control</title><link>https://devzone.nordicsemi.com/thread/110631?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 11:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0e12e9c-9fa6-4977-adba-05d647b51f9c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;It should be possible to modify both the serial bootloader and nrfutil to not use HWFC aslong as the baudrate is not to high.&lt;/p&gt;
&lt;p&gt;In the experimental_bootloader_secure_serial project you will have to modify the &lt;code&gt;serial_dfu_transport_init()&lt;/code&gt; function in &lt;code&gt;nrf_serial_dfu.c&lt;/code&gt; to not enable HWFC and set the baudrate to 9600, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;

uart_config.pseltxd            = TX_PIN_NUMBER;
uart_config.pselrxd            = RX_PIN_NUMBER;
uart_config.pselcts            = CTS_PIN_NUMBER;
uart_config.pselrts            = RTS_PIN_NUMBER;
uart_config.hwfc               = NRF_UART_HWFC_DISABLED;
uart_config.baudrate           = 2576384; // Corresponds to 9600 baud
uart_config.p_context          = &amp;amp;m_dfu;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Similarly you will have to modify the DfuTransportSerial class in &lt;code&gt;nordicsemi\dfu\dfu_transport_serial.py&lt;/code&gt; in the nrfutil source&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;class DfuTransportSerial(DfuTransport):

    DEFAULT_BAUD_RATE = 9600 #115200
    DEFAULT_FLOW_CONTROL = False #True
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Make sure that you run the setup.py script after you have modified the nrfutil source, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;python setup.py build
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>