<?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>Secure UART DFU: Sending packets using TTL Cable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable</link><description>Hi, 
 
 In the process of testing DFU on the hardware, I am trying to send the DFU Packets through a TTL Cable to a different pins(P0.02, P0.03. No HWFC) instead of sending them from onboard J-Link. Here&amp;#39;s what I did: 
 
 In the &amp;quot;Project ‘ secure_bootloader_uart_mbr_pca10056</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2020 13:10:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable" /><item><title>RE: Secure UART DFU: Sending packets using TTL Cable</title><link>https://devzone.nordicsemi.com/thread/279730?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3098c5-ca64-45df-82fe-0301fa285c35</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Bingo!&lt;/p&gt;
&lt;p&gt;Modifying command to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu serial -pkg PD52840V1R3_PA_Secure.zip -p COM4 -fc 0&lt;/pre&gt;&amp;nbsp;fixed it! Thanks a ton!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure UART DFU: Sending packets using TTL Cable</title><link>https://devzone.nordicsemi.com/thread/279724?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 12:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c6514b-f46e-46e8-9dd3-476e53379308</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Then the basics should be in place. I just double checked your nrfutil command and saw a key point I did not notice before. You have not specified that it should not use flow control, and flow control is enabled by default. So you must add &amp;quot;-fc 0&amp;quot; to your nrfutil command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure UART DFU: Sending packets using TTL Cable</title><link>https://devzone.nordicsemi.com/thread/279719?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 12:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73303144-12f8-431a-bade-4186f797cd71</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my response:&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable/279713#279713"]This means that it works using the USB bridge in the onboard J-Link debugger? If so that indicate that the SW is good so we should look at the HW configuration:[/quote]
&lt;p&gt;Yes. Everything&amp;#39;s working great with USB Bridge in the J-Link Debugger.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable/279713#279713"]Are you using the same UART pins with the JLink and your other UART cable?
[/quote]
&lt;p&gt;Nope. But, I updated the pins in the &amp;quot;Project &amp;lsquo;&lt;em&gt;&lt;strong&gt;secure_bootloader_uart_mbr_pca10056&lt;/strong&gt;&lt;/em&gt;&amp;rsquo;&amp;quot; project, I updated the UART Tx and Rx pin definitions in &amp;quot;&lt;strong&gt;&lt;em&gt;nrf_dfu_serial_uart.c -&amp;gt; uart_dfu_transport_init()&lt;/em&gt;&lt;/strong&gt;&amp;quot;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable/279713#279713"]Have you made sure you use correct voltage on the UART signals? As with any other GPIO the high level should be same as VDD.[/quote]
&lt;p&gt;Ofcourse. It&amp;#39;s a 3.3V UART and I connected common GND beween the DK and TTL Cable.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/68284/secure-uart-dfu-sending-packets-using-ttl-cable/279713#279713"]&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21673/dfu-bootloader-serial"&gt;This post&lt;/a&gt; explains that I will need to update the nRFUtil as well. But, I don&amp;#39;t know how. Can you please help me update the nRFUtil and Compile it in a way I can test the DFU on the custom board?[/quote]
&lt;p&gt;What I meant there is: I have exactly the same problem and for the most part, setup. We both don&amp;#39;t have HWFC enabled and the upgrade process never started. For me it looks like the nRFUtil is just stuck after command and is not outputting anything at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure UART DFU: Sending packets using TTL Cable</title><link>https://devzone.nordicsemi.com/thread/279713?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 12:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cffb3ae-2dfc-414d-a5e3-163b56f97255</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]No matter what I do, i could never send the packets through the TTL cable. However, everything&amp;#39;s working fine using the JLink.[/quote]
&lt;p&gt;This means that it works using the USB bridge in the onboard J-Link debugger? If so that indicate that the SW is good so we should look at the HW configuration:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are you using the same UART pins with the JLink and your other UART cable?
&lt;ul&gt;
&lt;li&gt;If not, have you configured the correct UART pins in the bootloader?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Have you made sure you use correct voltage on the UART signals? As with any other GPIO the high level should be same as VDD.&lt;/li&gt;
&lt;/ul&gt;
[quote user=""]&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/21673/dfu-bootloader-serial"&gt;This post&lt;/a&gt; explains that I will need to update the nRFUtil as well. But, I don&amp;#39;t know how. Can you please help me update the nRFUtil and Compile it in a way I can test the DFU on the custom board?[/quote]
&lt;p&gt;This is an old post which I do not think is relevant? In any case the simplest way to get the most recent nrfutil version is to ensure you have Python 3 installed on your computer an call &amp;quot;pip3 install -U nrfutil&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>