<?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>Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112489/write-a-file-to-littlefs-using-mcumgr-and-return-the-system-cannot-find-the-path-specified</link><description>I tried to use mcumgr to write and read files to the littlefs of 9160. According to the instructions, I will enter mcumgr conn add acm0 type=&amp;quot;serial&amp;quot; connstring=&amp;quot;dev=/dev/ttyACM0,baud=115200,mtu=512&amp;quot; first, then enter mcumgr -c acm0 fs upload foo.txt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2024 02:17:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112489/write-a-file-to-littlefs-using-mcumgr-and-return-the-system-cannot-find-the-path-specified" /><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/497397?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 02:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03331a0c-f622-462e-97db-09994f70fd14</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hello Menon,&lt;/p&gt;
&lt;p&gt;Thank you for your research. Currently, this issue is not very important, but it would be best if it could be resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/497324?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 11:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a02b021-98d0-4d12-a7f7-3a4e221732a5</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello Illy,&lt;/p&gt;
&lt;p&gt;I wanted to let you know that I am still looking into this case, but I am currently stuck at a certain point. I will invest some more time in this, and if I am unable to make any progress, I will seek assistance internally.&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/496741?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 01:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad14011-43a2-4eaf-a26c-7d29e3048f6e</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi Menon&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t made any new progress yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/496608?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 12:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20754f99-2cf8-44e9-ba26-d162401647c6</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response; it&amp;#39;s summer vacation season here in Norway.&lt;/p&gt;
&lt;p&gt;Hieu was on vacation, and I’ve been assigned to this ticket in the meantime. I’m following up to see if there have been any updates on this issue, as it has been two weeks since it was raised. Could you please let me know if there has been any progress?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/494007?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 02:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab85dae-355a-4464-8887-692d65fb34cd</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi Hieu&lt;/p&gt;
&lt;p&gt;Thank you for testing. I was able to reproduce error 5 using your project, but it still did not succeed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/494003?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 00:14:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f441150d-7b4a-4612-b97e-92eea4594e53</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi llly,&lt;/p&gt;
&lt;p&gt;I return with mixed good-bad news.&lt;/p&gt;
&lt;p&gt;After thinking about my test results, I realized that my NMP timeout state is a&amp;nbsp;&lt;em&gt;worse&lt;/em&gt; state than my initial &amp;quot;Error 5&amp;quot; state.&lt;/p&gt;
&lt;p&gt;The reason is because in this the NMP timeout error state, I cannot even run &lt;span&gt;image list&lt;/span&gt;, while in the &amp;quot;Error 5&amp;quot; state, I can run &lt;span&gt;image list&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;However, I still cannot figure out why the fs commands don&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for restarting from a fresh start, I tried using the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/samples/subsys/shell/fs/README.html"&gt;File system shell&lt;/a&gt;&amp;nbsp;but it would not work at all, NMP Timeout no matter what I tried...&lt;/p&gt;
&lt;p&gt;Unfortunately, I will now have to be out of office for a few weeks and cannot further investigate either of the issues. I will leave some notes now, and&amp;nbsp;one of my colleagues will further support you.&lt;/p&gt;
&lt;p&gt;For the record, I reached the &amp;quot;Error 5&amp;quot; state by doing the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start with&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/080252c6f12958ed0390d37832999b86a9a0f77b/bootloader_samples/smp/mcuboot_smp_uart"&gt;samples_for_nrf_connect_sdk/bootloader_samples/smp/mcuboot_smp_uart · hellesvik(github.com)&lt;/a&gt;.
&lt;ul&gt;
&lt;li&gt;There is no reason to this starting point. I simply know that this unofficial sample has MCUmgr enabled,&amp;nbsp;and your setup has MCUboot, so I figure it is a decent starting point.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Update main.c and prj.conf with contents from&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.5.99-ncs1/samples/subsys/fs/littlefs"&gt;sdk-zephyr/samples/subsys/fs/littlefs at v3.5.99-ncs1 · sdk-zephyr (github.com)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From my other tests, I would expect that starting with the littlefs sample and then adding MCUmgr with the FS commands would&amp;nbsp;yield the same results.&lt;/p&gt;
&lt;p&gt;Attached is my project.&amp;nbsp;&lt;br /&gt;The &amp;quot;Error 5&amp;quot; state can be reproduce with building by default, or with heap_stack_size.conf &lt;em&gt;overlay&lt;/em&gt;.&lt;br /&gt;The &amp;quot;NMP Timeout&amp;quot; state cane be reproduced with building with the fs_shell.conf overlay.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/mcumgr_5F00_fs_5F00_tests_5F00_240716_5F00_01.zip"&gt;devzone.nordicsemi.com/.../mcumgr_5F00_fs_5F00_tests_5F00_240716_5F00_01.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;P.s: I also see that I uploaded the wrong log for this &amp;quot;Error 5&amp;quot; state last time, so I have reproduced it and updated my last reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/493257?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 01:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421df081-d468-4c1e-94fc-d90b5e85d05f</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi Hieu&lt;/p&gt;
&lt;p&gt;Yes, the problem I am currently facing is NMP timeout, which looks the same as yours.&lt;/p&gt;
&lt;p&gt;Thank you for your efforts. I will continue to wait for your good news.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/493249?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 21:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6386a5e1-1799-49e4-9635-e263f9ec37ed</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi llly,&lt;/p&gt;
&lt;p&gt;My results have been&amp;nbsp;different, but things are still not working in either cases.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PS C:\_w\c\c329113_littlefs_mcuboot\mcuboot_smp_uart&amp;gt; mcumgr -c com14 fs download /lfs/pattern.bin a2.bin
Error: 5
PS C:\_w\c\c329113_littlefs_mcuboot\mcuboot_smp_uart&amp;gt; mcumgr -c com14 fs upload hi.txt /lfs/hi.txt
0
Error: 5&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Assuming this is&amp;nbsp;error from mcumgr, error 5 is &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/services/device_mgmt/mcumgr.html#c.mcumgr_err_t.MGMT_ERR_ENOENT"&gt;MGMT_ERR_ENOENT&lt;/a&gt;, which is also no such file.&lt;/p&gt;
&lt;p&gt;This was going to resemble your initial issue somewhat. However, if I understand you correctly, you had some issue with your &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;mcumgr connstring&lt;/span&gt;; and after fixing that, you get &lt;em&gt;NMP Timeout&lt;/em&gt; errors instead. Is that right?&lt;/p&gt;
&lt;p&gt;That would make sense because after looking closely at your second screenshot, the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;stat&lt;/span&gt; commands are also failing with the same &amp;quot;cannot find the path specified&amp;quot; error. This means&amp;nbsp;it is unlikely that the device&amp;#39;s file system is the root cause.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am now also at the same point. A few stack and heap config changes&amp;nbsp;get me to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\_w\c\c329113_littlefs_mcuboot\mcuboot_smp_uart&amp;gt;mcumgr -c com14 fs upload ./hi.txt /lfs/hi.txt
Error: NMP timeout

C:\_w\c\c329113_littlefs_mcuboot\mcuboot_smp_uart&amp;gt;mcumgr -c com14 fs download /lfs/pattern.bin abc.bin
Error: NMP timeout

C:\_w\c\c329113_littlefs_mcuboot\mcuboot_smp_uart&amp;gt;mcumgr -c com14 fs download /lfs/pattern.bin abc.bin -t 300
Error: NMP timeout&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(I switched from Windows PowerShell to Windows CMD in the second log there, but that should not be an issue.)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have been looking into the mcumgr Golang CLI too but&amp;nbsp;haven&amp;#39;t fully&amp;nbsp;figured out what is going on yet. It would be very helpful if I can add logging as if it is a Python&amp;nbsp;script, but&amp;nbsp;it&amp;nbsp;doesn&amp;#39;t seem to be the same here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will try a few things more and pull in some help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/493055?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 01:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ff76ed-d2bf-49c4-93d7-c9c6334e2b16</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi Hieu&lt;/p&gt;
&lt;p&gt;It&amp;#39;s okay,&amp;nbsp;but I want to know if your mcumgr is also in the same situation? Or can you read and write normally on your end? If you haven&amp;#39;t encountered this problem, could it be a problem with my driver or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/493042?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 19:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481a8bae-0476-45d8-a32c-e619c1afe9d5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi llly,&lt;/p&gt;
&lt;p&gt;Sorry for the long absence. I have not forgot your question here, but I still haven&amp;#39;t figured it out yet.&lt;/p&gt;
&lt;p&gt;I will try to keep you regularly updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/492846?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 03:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6f0224-a641-40a5-b706-60260c24f927</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;Hi Hieu&lt;/p&gt;
&lt;p&gt;Can you help me check this question when you have time？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/490978?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 02:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c5002e-03be-4f42-bed1-5150975bebda</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;It is indeed a problem with dev,&amp;nbsp;I use this command&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcumgr conn add acm0 type=&amp;quot;serial&amp;quot; connstring=&amp;quot;dev=COM50,baud=115200,mtu=512&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There will be no prompt for path error.&lt;/p&gt;
&lt;p&gt;But now the error has changed to NMP timeout&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/_1C64D772D89A1F904F6DC88968562A62FE56_20240627103733.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/490973?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 01:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc213e0-b269-4f67-963b-db26b3066b3d</guid><dc:creator>llly</dc:creator><description>&lt;p&gt;HI Hieu&lt;/p&gt;
&lt;p&gt;There is this foo.txt in the current directory of cmd.&lt;/p&gt;
&lt;p&gt;I tried using an absolute path, but the result was still the same.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_1C64D772D89A1F904F6DC88968562A62FE56_20240627090921.png" /&gt;&lt;/p&gt;
&lt;p&gt;And any command I enter returns this result,&amp;nbsp;even disconnecting the device from the computer is like this.&lt;/p&gt;
&lt;p&gt;Is it possible that the command dev=/dev/ttyACM0 needs to be modified?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write a file to littlefs using mcumgr and return The system cannot find the path specified</title><link>https://devzone.nordicsemi.com/thread/490909?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 13:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:031253d1-843a-4c58-9e72-89ba5f8683d5</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi llly,&lt;/p&gt;
&lt;p&gt;The error seems to be because the command line cannot find foo.txt on your system rather than a problem with the device.&lt;/p&gt;
&lt;p&gt;I am not sure where mcumgr expect foo.txt to be without any path, but can you try using an absolute path? Also avoid using any non-ASCII character in the path. Preferably only use alphanumeric character and maybe underscore &amp;quot;_&amp;quot;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>