<?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>Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66827/unable-to-use-mcumgr-cli-over-serial-from-windows</link><description>Hi, I have a nRF5340 based target board running SMP server plus MCUmgr. My ultimate goal is to reproduce on Windows the DFU over serial I already do from Linux. Tese are the steps I&amp;#39;ve followed on Windows 10 
 
 download mcumgr CLI source from https:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Mar 2021 08:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66827/unable-to-use-mcumgr-cli-over-serial-from-windows" /><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/301814?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 08:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8c920d0-2267-48ae-b94e-7763c9c6feee</guid><dc:creator>smohan</dc:creator><description>&lt;p&gt;Thats cool!. As the tool is particularly designed for linux, i couldn&amp;#39;t be much sure on windows&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/301811?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 08:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b2a17b-ea75-4017-a4b1-eb1fc9181fc6</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;As explained here &lt;a href="https://github.com/apache/mynewt-mcumgr"&gt;github.com/.../mynewt-mcumgr&lt;/a&gt;&lt;br /&gt;mgmt (the core layer of mcumgr stack) can work with SMP/Bluetooth Transport.&lt;br /&gt;But I can&amp;#39;t say much about OTA DFU, because I didn&amp;#39;t get inside it. I will do it in my next project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/301809?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 07:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68e9e636-1d75-4538-8a4d-630677540150</guid><dc:creator>smohan</dc:creator><description>&lt;p&gt;Thanks a lot, i would check that out!.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do u think this would work properly on Windows for DFU over air through BLE, rather than serial?&lt;/p&gt;
&lt;p&gt;Just had a thought.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/301326?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 07:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbac0eeb-1294-46d8-95bd-d3677f769a18</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hi Mohan,&lt;br /&gt;At this moment this is all I can say you. Time is going to flight..&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Install Go and build MCUmgr CLI on Windows host&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;1. Download the current binary for Go from &lt;a href="https://golang.org/dl/"&gt;https://golang.org/dl/&lt;/a&gt;&lt;br /&gt;2. Open the MSI file you downloaded and follow the prompts to install Go.&lt;br /&gt;If this gives one of several errors try this&lt;br /&gt;open the Command Prompt as administrator and write the command&lt;br /&gt;&amp;gt; msiexec /i &amp;quot;C:\&amp;lt;anyPathTo&amp;gt;\go&amp;lt;x.y.z&amp;gt;.windows-amd64.msi&amp;quot;&lt;br /&gt;This will run the MSI installer of your program without errors.&lt;br /&gt;3. Check installation works&lt;br /&gt;&amp;gt; go version&lt;br /&gt;4. Download mcumgr source zip from &lt;a href="https://github.com/apache/mynewt-mcumgr-cli"&gt;github.com/.../mynewt-mcumgr-cli&lt;/a&gt; &lt;br /&gt;5. Unpack and rename resulting directory to $GOPATH/src/mynewt.apache.org/mcumgr&lt;br /&gt;You can find GOPATH under the environment variable list &lt;br /&gt; &lt;br /&gt;6. Go in the source directory and build&lt;br /&gt;&amp;gt; cd C:\Users\gabriele\go\src\mynewt.apache.org\mcumgr\mcumgr&lt;br /&gt;&amp;gt; go build&lt;br /&gt;7. Check&lt;br /&gt;&amp;gt; mcumgr version&lt;br /&gt;mcumgr 0.0.0-dev&lt;br /&gt;8. Use it&lt;br /&gt;&amp;gt; mcumgr -t 20 --conntype serial --connstring=COM2 &amp;lt;cmd&amp;gt;&lt;br /&gt;To make DFU, copy the new FW release (signed image app_update.bin) into the folder&lt;br /&gt;C:\Users\&amp;lt;user&amp;gt;\go\src\mynewt.apache.org\mcumgr\mcumgr&lt;br /&gt;Open a commad shell there and use mcumgr to perform DFU.&lt;br /&gt;For example&lt;br /&gt;&amp;gt; mcumgr -t 20 --conntype serial --connstring=COM2 image upload &amp;lt;path to&amp;gt;\app_update.bin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/300824?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 07:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f446c5-8c66-429f-ac29-7657d1debb35</guid><dc:creator>smohan</dc:creator><description>&lt;p&gt;Hi Gabriele,&lt;/p&gt;
&lt;p&gt;Any updates on windows?. As i am trying the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;S Mohan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/274102?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 16:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00e7065a-97c1-4b3e-97dd-409e2f7cdcc6</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;I&amp;#39;ve found the fucking culprit&lt;br /&gt;CONFIG_UART_0_NRF_FLOW_CONTROL=y&lt;br /&gt;This switch prevents mcumgr client to work properly on Window 10 host. At this moment I don&amp;#39;t know why.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/274027?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7faf05e9-f0f2-4575-930f-0568f9322428</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;If I rebuild &amp;amp; flash the smp_svr project (zephyr/samples/mgmt/mcumgr/smp_svr/) the mcumgr CLI works with Windows&lt;/p&gt;
&lt;p&gt;If I copy the main.c of smp_svr into my project then rebuild &amp;amp; flash, the mcumgr CLI does not works with Windows&lt;/p&gt;
&lt;p&gt;No problem with Linux host in either cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/274006?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 11:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5be76842-93e7-49e9-bab3-134c6aa92e08</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, then I am sorry. It was the end of the day, and I thought it was better to provide something, rather than nothing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please try to use the Zephyr MCU manager, which is linked from &lt;a href="https://docs.zephyrproject.org/latest/guides/device_mgmt/index.html#device-mgmt"&gt;this guide&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;You can test it using the &lt;a href="https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr-sample"&gt;SMP Server example&lt;/a&gt;. Let me know if that doesn&amp;#39;t work on your Windows computer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/273936?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 07:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68bbbbd9-9cfb-4e3c-a8d3-795170b13b79</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Hello Edvin,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;the ticket you refer to has nothing to do with my issue.&lt;br /&gt;In that post the guy has a problem with the software of the target board.&lt;br /&gt;In my case the problem is the mcumgr CLI, which runs on the Host PC.&lt;br /&gt;With Linux host it works fine, with Windows I have NMP timeout.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/273845?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 15:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f23197-0858-4d74-a702-d57cc007ff48</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please try to go through &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44209/usb-serial-dfu-to-nrf52840-on-nrf91-dk-board"&gt;this ticket&lt;/a&gt; and see if there is any useful information there? I am sorry, but I am not very familiar with apaches mcumgr, but I see that he was struggling with the same NCP timeout in the beginning of the discussion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use mcumgr cli over serial from windows</title><link>https://devzone.nordicsemi.com/thread/273483?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 12:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d1c28c-4bec-414a-9cdb-536a9fe3d4c3</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/mcumgr_5F00_issue.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;br /&gt;It seems data transmitted over the serial are the same, even though on Windows I get the error.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>