<?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>DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21673/dfu-bootloader-serial</link><description>Hi guys, 
 I am experimeting using the experimental_bootloader_secure_serial
example, but I am not having luck with the example code. I tried using the
BLE secure bootloader and all worksfine over BLE.I tried the same steps that I used for the BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2017 14:24:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21673/dfu-bootloader-serial" /><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85137?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 14:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ee8b1a-dd69-4c3c-afea-38fc576314ec</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Since you&amp;#39;re not using HWFC(which the bootloader is designed for) then you need to send the data at a very low speed in order to avoid overflowing the receive buffer, i&amp;#39;ve only tested for 9600 baud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85136?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 14:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b4218bb-b51f-4da2-a87e-a0ec4269b89d</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;Thanks Bjørn. It is working now, but it seems only to work when the baudrate is 9600 and the HWFC is false. If I tried baudrate 38k and HWFC false and it does not work. (the same changes are on dfu_transport_serial.py)&lt;/p&gt;
&lt;p&gt;Thanks again :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85135?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 11:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e2625c-9786-4c9c-b21f-7935dad39ff4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Mustafa, I just saw that there is an error in the UART configuration in my &lt;a href="https://devzone.nordicsemi.com/question/128224/sdk-1300-secure-serial-dfu-without-flow-control/"&gt;answer&lt;/a&gt;. It should be NRF_UART_HWFC_DISABLED and not NRF_UART_HWFC_ENABLED, 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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85134?ContentTypeID=1</link><pubDate>Sat, 29 Apr 2017 01:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29f37e22-dcd0-49ce-a5a5-d93bbb854324</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;Hi Bjørn, I am still with no luck.&lt;/p&gt;
&lt;p&gt;if I let enabled the flow control on dfu_transport_serial.py and bootloader I got the following log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\DesktopHome\Nordic\pc-nrfutil-master&amp;gt;python nordicsemi/__main__.
py dfu serial -pkg 1Normal_HWFC.zip -p COM15
  [####################################]  100%
Device programmed.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If I disable the flow control on dfu_transport_serial.py and bootloader I got the following log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;C:\DesktopHome\Nordic\pc-nrfutil-master&amp;gt;python nordicsemi/__main__.
py dfu serial -pkg 1Normal.zip -p COM15
  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 681, in &amp;lt;module&amp;gt;
    cli()
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 722, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 697, in main
    rv = self.invoke(ctx)
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;C:\Python27\lib\site-packages\click\core.py&amp;quot;, line 535, in invoke
    return callback(*args, **kwargs)
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 584, in serial
    dfu.dfu_send_images()
  File &amp;quot;C:\DesktopHome\Nordic\pc-nrfutil-master\nordicsemi\dfu\dfu.
py&amp;quot;, line 122, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
  File &amp;quot;C:\DesktopHome\Nordic\pc-nrfutil-master\nordicsemi\dfu\dfu.
py&amp;quot;, line 95, in _dfu_send_image
    self.dfu_transport.send_firmware(data)
  File &amp;quot;C:\DesktopHome\Nordic\pc-nrfutil-master\nordicsemi\dfu\dfu_
transport_serial.py&amp;quot;, line 277, in send_firmware
    response['crc'] = self.__stream_data(data=data, crc=response['crc'], offset=
i)
  File &amp;quot;C:\DesktopHome\Nordic\pc-nrfutil-master\nordicsemi\dfu\dfu_
transport_serial.py&amp;quot;, line 389, in __stream_data
    response = self.__calculate_checksum()
  File &amp;quot;C:\DesktopHome\Nordic\pc-nrfutil-master\nordicsemi\dfu\dfu_
transport_serial.py&amp;quot;, line 334, in __calculate_checksum
    (offset, crc) = struct.unpack(&amp;#39;&amp;lt;II&amp;#39;, bytearray(response))
TypeError: &amp;#39;NoneType&amp;#39; object is not iterable
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;at this point I dont know what I am doing wrong. I am compiling after each change dfu_transport_serial.py and verifing it sending printing messages on the command window. I keep the PCA10040 to all the codes, bootloader, app. Does this requiere CTS and RTS pins to works?&lt;/p&gt;
&lt;p&gt;In additional I noticed when I disable the flow control on the dfu_transport_serial.py and tried the serial DFU the LED2 and LED 3 turn on and after the it the device restarts and jump to the main aplication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85133?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 10:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2285469b-36aa-440f-8fe6-a7d0f3ea39ca</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;code&gt;A additional info I am running the nrfutil from thr souce code calling __main__.py if I made any&lt;/code&gt; &lt;code&gt;change to the nrfutil code example disabling/enabling the HWFC does it have any effect calling&lt;/code&gt; &lt;code&gt;directly the __main__.py or do I have to compile it before?&lt;/code&gt;
Yes, you must compile it even though you&amp;#39;re running it from source since it uses a static library that must be updated if you modify the source.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85132?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 08:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2592e45-5158-44eb-9376-4081c1331668</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;Yes, I did it. I am going to double check again that both app and bootloader have the same pca10040.h file. In case that both are using the same file. I dont know why it does not work on the nRF52 Dk when I changed the Tx/Rx to p03/p04 on the bootloader and app code. A additional info I am running the nrfutil from thr souce code calling &lt;strong&gt;main&lt;/strong&gt;.py if I made any change to the nrfutil code example disabling/enabling the HWFC does it have any effect calling directly the &lt;strong&gt;main&lt;/strong&gt;.py or do I have to compile it before? I tested it using the default Tx/Rx on the DK module and works the serial DFU with no diference. But not when changing the TX/Rx to different pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85131?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 07:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c76c4475-e317-418b-a80a-191e0dbe9fb0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@Mufasa1: No, it fully possible to use the Serial Bootloader on custom boards. Are you able to debug your custom board in order to verify that the serial bootloader is running correctly? Have you replaced the pca10040.h file with a custom_board.h file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85130?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 20:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d24e1ac-a0d9-4fac-b638-22a2be119576</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;I was wondering if the only way to perform the DFU serial is using a Dev kit Board like the nRF52 DK. or is it possible with a custom hardware? or using a different TX/RX on the Dev kit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85129?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 14:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc169068-8a6f-40ea-8b50-cf3b6fdbebf5</guid><dc:creator>Mufasa1</dc:creator><description>&lt;p&gt;Hi Bjørn,
I tried putting tx/rx the p0.3 and p0.04 with no luck. so I opened the shorts on: SB22, SB23, SB24 and SB25 on the nRF52 DK now I am not able to communicate over the Jlink (just as I expected), but I am able to put my device into bootloader from the APP code writing a commad over serial using p0.06, p0.08 with a USB-Serial converter. Still stuck on the percent bar 0%. The Serial DFU only works over the Jlink for me.&lt;/p&gt;
&lt;p&gt;Note for my custom board I am not using CTS or RTS. Just TX/RX&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU bootloader Serial</title><link>https://devzone.nordicsemi.com/thread/85128?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 09:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c1212d-7515-4bc6-afbf-2e9592deac8d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The serial bootloader does not advertise on BLE, so thats why you dont see any advertisment packages. I suggest that you change the TX_PIN_NUMBER and RX_PIN_NUMBER to pin P0.03 and P0.04.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>