<?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>mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90636/mcumgr-hangs-during-image-upload</link><description>I have a thingy91 that has been flashed over JLINK which has wiped out the MCUBoot. I&amp;#39;m attempting to get it back using mcumgr. I have mcumgr all setup, but when I run 
 
 nothing happens after the progress bar appears. It just stays at zero percent.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2022 06:36:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90636/mcumgr-hangs-during-image-upload" /><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380502?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 06:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bda1e19-31ea-4d27-b24f-6f43ad81024d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good to hear that you got to the AT commands!&lt;/p&gt;
&lt;p&gt;If you face issues related to the network connection, it would be nice if you create a new ticket on that, to keep DevZone tidy.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380465?ContentTypeID=1</link><pubDate>Sat, 06 Aug 2022 19:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d4a3c0-36a3-4d86-82f1-6d3169be61e4</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;Looks like I got the LTE Link Monitor working.&amp;nbsp; I must have still been in MCUBoot mode after I flashed the hex file.&amp;nbsp; I flashed it again and power cycled and I can run at commands now.&amp;nbsp; Still no network connection yet though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380464?ContentTypeID=1</link><pubDate>Sat, 06 Aug 2022 17:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c735d343-68f4-4564-aba2-d72d86ce0a4b</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;I was able to flash `thingy91_at_client_2022-06-02_880c82db.hex` to the board, but I still can&amp;#39;t use LTE Link Monitor.&amp;nbsp; UART flashes from yellow to red.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1659805885911v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;13:06:45.310	Modem port is opened
13:06:49.538	Error: &amp;#39;AT+CFUN=1 &amp;#39; timed out
13:06:56.718	Error: &amp;#39;AT+CFUN? &amp;#39; timed out
13:07:11.476	Modem port is closed
13:07:13.309	Modem port is opened
13:07:17.914	Modem port is closed
13:07:17.953	Modem port is opened
13:07:22.014	Error: &amp;#39;AT+CFUN=1 &amp;#39; timed out
13:08:44.003	Modem port is opened
13:08:45.579	Modem port is closed
13:08:45.621	Modem port is opened
13:08:51.448	Error: &amp;#39;AT+CFUN=1 &amp;#39; timed out
13:10:27.053	Network search failed: Error: &amp;#39;AT+COPS=? &amp;#39; timed out
13:10:28.056	Error: &amp;#39;CEREG? &amp;#39; timed out
13:10:29.060	Error: &amp;#39;CEREG? &amp;#39; timed out
13:10:30.075	Error: &amp;#39;CEREG? &amp;#39; timed out
13:10:31.079	Error: &amp;#39;AT &amp;#39; timed out
13:10:32.091	Error: &amp;#39;CEREG? &amp;#39; timed out
13:10:33.096	Error: &amp;#39;AT+CEREG? &amp;#39; timed out
13:10:34.102	Error: &amp;#39;AT+CEREG? &amp;#39; timed out&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380272?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 07:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5542b1c-c59a-4b09-8060-edc204b25ec5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;MCUBoot is a bootloader, which main job is to boot your application, making it possible to upgrade the application using what is known as Device Firmware Update.&lt;/p&gt;
&lt;p&gt;The LTE Link Monitor is an UART monitor with some extra functionality.&lt;br /&gt;For the LTE Link Monitor to work, you need your application to expose the AT command functionality on the UART connected to the PC.&lt;br /&gt;See our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/at_client/README.html"&gt;AT Client&lt;/a&gt; for a simple example this.&lt;/p&gt;
&lt;p&gt;In other words, MCUBoot is not needed for the LTE Link Monitor.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380150?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 13:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfcaba08-4fbe-49fb-9785-493cdaa89f93</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;I misunderstood then, I thought mcumgr could be used without MCUBoot.&amp;nbsp; I think MCUBoot is gone, because I am using Rust Programming not Zephyr.&amp;nbsp; When I flashed it last, the Rust Firmware only has a secure partition manager linked in, that&amp;#39;s it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only reason I want the MCUBoot back, is so I can use it to debug my cellular connection with&amp;nbsp;&lt;span&gt;LTE Link Monitor.&amp;nbsp; It times out when I try to send AT commands, so I thought it must be the missing MCUBoot that is causing it to fail.&amp;nbsp; So far, I can&amp;#39;t get an LTE link.&amp;nbsp; It stays in CEREG 0,4 (unknown) and never finds a link.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Daniel&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/380028?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 06:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd92c406-d98d-4f62-a7bb-3bfcbb5f5369</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;After reading your original question again, I see that you say:&lt;/p&gt;
[quote user=""]I have a thingy91 that has been flashed over JLINK which has wiped out the MCUBoot.[/quote]
&lt;p&gt;Can you explain how you know MCUBoot has been wiped out?&lt;/p&gt;
&lt;p&gt;Can you include details on how you flashed over JLINK?&lt;/p&gt;
[quote user="dkhayes117"]I don&amp;#39;t think that is the problem,[/quote]
&lt;p&gt;I agree. Here is what I think is wrong:&lt;/p&gt;
&lt;p&gt;Mcumgr is a tool to send an image compatible with MCUBoot.&lt;br /&gt;This requires that your application has both MCUBoot activated and functionality as either a Serial Recovery or SMP Server.&lt;br /&gt;If you wiped your application using a programmer/debugger, you can no longer use Mcumgr, since you have no such application.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix&lt;/strong&gt;: You need to flash the application to your Thingy using an external debugger(nRF9160 Developement Kit or a JLINK debugger/programmer). &lt;br /&gt;I recommend you use our nRF Programmer app in &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop/download"&gt; nRF Connect for Desktop&lt;/a&gt; for the software side. Get the prcompiled firmware from the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-91/Download?lang=en#infotabs"&gt; Nordic Thingy:91 product page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/379993?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 23:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:475bb5f4-e6a1-4d88-9fd5-d3f52cc2de22</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;I don&amp;#39;t think that is the problem, as I am not building with Zephyr, I&amp;#39;m trying to flash a pre-compiled binary from Nordic.&amp;nbsp; When I run&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr --conntype serial --connstring &amp;quot;/dev/ttyACM0,baud=115200&amp;quot; echo hello&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I do not get &amp;quot;hello&amp;quot; back, just an empty line.&amp;nbsp; ttyACM0 has the correct privileges and I don&amp;#39;t see anything else wrong.&amp;nbsp; The uart connection just doesn&amp;#39;t seem to work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/379868?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 10:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80fb55bf-2cd1-4cec-a8f9-7065a63e819f</guid><dc:creator>dkhayes117</dc:creator><description>&lt;p&gt;I will try that later when I can.&amp;nbsp; I will report back.&amp;nbsp; Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr hangs during image upload</title><link>https://devzone.nordicsemi.com/thread/379843?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 09:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c5e3b7-c3a0-46ae-974d-a278426fad81</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could it be the same issue as in &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/82975/serial-dfu-on-nrf9160-dk-fail-to-upload-image-using-mcumgr"&gt;Serial DFU on NRF9160-DK fail to upload image using mcumgr&lt;/a&gt; ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>