<?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>Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34448/mesh-dfu-dfu_cmd_handler_set-always-failing</link><description>Hi @ll, 
 I&amp;#39;m still trying to get the Mesh DFU example up and running. I&amp;#39;m following the guide in the documentation. (Mesh Version 2.0.0: it&amp;#39;s the same in 2.0.1 so don&amp;#39;t worry about the version) 
 Setup: Everything flashed (Softdevice 6.0.0, Bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 13:16:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34448/mesh-dfu-dfu_cmd_handler_set-always-failing" /><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133832?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 13:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b34fc37d-b54a-4dea-93dc-2273b0890a46</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for updating us the workaround. It&amp;#39;s a pity that it would require two machine to make a serial port working.&amp;nbsp; I will talk with the team to&amp;nbsp;check if they can have a better solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that even if&amp;nbsp; you can&amp;#39;t change the UART pins, you can still disconnect the UART pin to the Segger chip by cutting the SB2x solder bridge.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133754?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 07:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723c88cb-3bbc-46ee-8191-572ac0e18b5c</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;I now bypassed the problem by now, just in case someone has the same problem on a Linux machine:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://cote.cc/blog/serialproxy-v014-can-use-com-ports-above-9"&gt;https://cote.cc/blog/serialproxy-v014-can-use-com-ports-above-9&lt;/a&gt;&lt;br /&gt;Used SerProxy 0.1.4 on my Windows machine to forward the COM-Port to TCP/IP&lt;br /&gt;&lt;br /&gt;Connected on my Linux machine the TCP/IP to a virtual modem:&lt;br /&gt;sudo socat pty,link=/dev/vmodem0,raw tcp:x.x.x.x:xxxx&lt;br /&gt;&lt;br /&gt;Then used nrfutil for mesh with the virtual modem as serial interface.&lt;br /&gt;&lt;br /&gt;--&amp;gt; Working&lt;br /&gt;&lt;br /&gt;But this is just a workaround. Please solve this issue as I need two machines for this and it might not be that reliable.&lt;br /&gt;&lt;br /&gt;I hope this will help some people.&lt;/p&gt;
&lt;p&gt;Bye&lt;br /&gt;Andrej&lt;/p&gt;
&lt;p&gt;P.S.: If someone has the same problem it might be also possible to forward the USB device (DevKit) to a Windows VM that is then in a private network with the host. Not confirmed but should work. Using this method you would one have to use one physical machine. Could not test it due to license issues (no additional corporate Windows license)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133246?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 12:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3669d3d-d7e0-403d-b760-5466ab035a13</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;changing the pins for the bootloader will be hard without the source code. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The serial communication was not working all the time at the training. Once it worked we kept everything open and running. Once we disconnected something and tried to use it again we had the timeout issue again. Remember?&lt;br /&gt;&lt;br /&gt;Bye&lt;br /&gt;Andrej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133237?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 12:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88a5cd2a-26b5-4d80-a54f-633681523728</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have your own UART port on your PC you don&amp;#39;t have to use the SEGGER one. Just configure the firmware on the chip to use different UART pin and use those pins to connect to your USB-UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as I remember&amp;nbsp;the communication were quite stable&amp;nbsp;when we were at the training ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133210?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 11:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bfce44-7e41-4a61-8e4d-0abbdbe5b6fa</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;this solution is working. Thanks for that.&lt;br /&gt;But I still have a massiv problem with the serial communication using SEGGER 6.16c on my linux machine. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It looks like this communication is only working by chance as it is almost always working on my windows machine.&lt;/p&gt;
&lt;p&gt;Is there a way to replace everything&amp;nbsp;SEGGER&amp;lt;-&amp;gt;UART related by external USB&amp;lt;-&amp;gt;UART?&lt;/p&gt;
&lt;p&gt;Bye&lt;br /&gt;Andrej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/133159?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 08:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f765e01c-937c-4041-b736-b06bfde7112d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you use SES to build the DFU project ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you did, could you try a quick patch to see if it fixes the issue for you? R&amp;amp;D told me about the bug that SES-built firmware will clear the RAM part of the bootloader and cause the CMD handler location to be NULL.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.5pt;font-family:&amp;#39;Arial&amp;#39;, sans-serif;"&gt;In examples/dfu/flash_placement.xml, change line 32 from&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:14.25pt;background:white;"&gt;&lt;span style="font-size:10.5pt;font-family:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:maroon;"&gt;&amp;lt;MemorySegment&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;name&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;RAM&amp;quot;&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;start&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;$(RAM_PH_START)&amp;quot;&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;size&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;$(RAM_PH_SIZE)&amp;quot;&lt;/span&gt;&lt;span style="color:maroon;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.5pt;font-family:&amp;#39;Arial&amp;#39;, sans-serif;"&gt;to&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:14.25pt;background:white;"&gt;&lt;span style="font-size:10.5pt;font-family:Consolas;"&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:maroon;"&gt;&amp;lt;MemorySegment&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;name&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;RAM&amp;quot;&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;start&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;$(RAM_PH_START)&amp;quot;&lt;/span&gt;&amp;nbsp;&lt;span style="color:red;"&gt;size&lt;/span&gt;=&lt;span style="color:blue;"&gt;&amp;quot;$(RAM_SIZE)&amp;quot;&lt;/span&gt;&lt;span style="color:maroon;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:14.25pt;background:white;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="line-height:14.25pt;background:white;"&gt;&lt;span style="font-size:10.5pt;font-family:Consolas;"&gt;Please let me know if it fixes the issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/132931?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 08:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6edb297-9734-4a19-9ff4-c0fbf4482f68</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;so I redownloaded the Mesh SDK2.0.1 and compiled the DFU-App-example (just to be sure that I did not mess up something)&lt;br /&gt;&lt;br /&gt;I rebuilded the device page and flashed everything (Softdevice 6.0.0, Bootloader (gccarmemb_serial_nrf52832_xxAA), device_page and dfu_app - in that order). Then the reset of the board and the example boots.&lt;/p&gt;
&lt;p&gt;But I still get this &amp;quot;No CMD handler!&amp;quot; ERROR from nrf_mesh_dfu.c line 901.&lt;/p&gt;
&lt;p&gt;Looks like the bootloader is not compatible with softdevice 6.0.0 or it is broken to me?&lt;/p&gt;
&lt;p&gt;Could you please verify that this guide (except for replacing &amp;quot;sd_5.0.0&amp;quot; by &amp;quot;sd_6.0.0&amp;quot;):&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_dfu_quick_start.html"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_dfu_quick_start.html&lt;/a&gt;&lt;br /&gt;Is still vaild for SDK 2.0.1 including all files included in SDK 2.0.1? Like bootloader, device_page_generator etc.?&lt;br /&gt;&lt;br /&gt;FYI: I get the exact same error on my windows machine as it is not a serial issue but a &amp;quot;memory-address-to-ram-write&amp;quot;-issue within the bootloader as far as we can tell now, I guess.&lt;/p&gt;
&lt;p&gt;Thank you for your help and I hope to hear from you soon once this is verified &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;______&lt;/p&gt;
&lt;p&gt;Andrej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/132823?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 16:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4502c58f-a446-4edc-8a9d-26df7ba1e1ac</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that the bootloader should write the address of the dfu_cmd_handler (that is located inside the bootloader) in to the last address in RAM.&amp;nbsp;dfu_cmd_handler_set() will check if the address is located inside bootloader flash area or not. I&amp;#39;m not sure how in your case it ends up in the application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Do you have the same problem when you test on Windows machine ? Have you managed to perform any DFU update using Windows ? If you do, we can focus on the incompatibility on Linux. I will try to get the team to have a look on the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/132691?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 09:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf8efc13-fb41-41d5-b9f0-8aa065a6c80c</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34378/mesh-dfu-example-not-working-no-serial-communication-for-linux-and-more"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/34378/mesh-dfu-example-not-working-no-serial-communication-for-linux-and-more&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Check the first part of the ticket. This is how I fixed this problem you have ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/132650?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 07:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06cf76c9-6754-4ca3-8503-3063cabbf86c</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;I&amp;#39;m also running that example . But I follow :&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp"&gt;http://infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&amp;nbsp;. When I run to step 4 :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;dfu$ python device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_5.0.0&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get this error :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5280.error.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you encounter this error?&amp;nbsp;If yes, can you give me the solution. Thank!!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU dfu_cmd_handler_set always failing?</title><link>https://devzone.nordicsemi.com/thread/132647?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 07:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:409009ab-2d98-4d81-a4ca-2df2c6812041</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Short update:&lt;br /&gt;The handler-address seems to be&lt;br /&gt;handler = 0x2618F which is inside the application, not in the bootloader.&lt;/p&gt;
&lt;p&gt;Unfortunately the bootloader is not available as source to check what is placed at RAM when &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>