Write a file to littlefs using mcumgr and return The system cannot find the path specified

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="serial" connstring="dev=/dev/ttyACM0,baud=115200,mtu=512" first, then enter mcumgr -c acm0 fs upload foo.txt /lfs/foo.txt, will get this error

I have also set CONFIG_MCUMGR_GRP_FS to y

How should I solve this problem?

Parents
  • Hi llly,

    The error seems to be because the command line cannot find foo.txt on your system rather than a problem with the device.

    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 "_".

    Hieu

  • HI Hieu

    There is this foo.txt in the current directory of cmd.

    I tried using an absolute path, but the result was still the same.

    And any command I enter returns this result, even disconnecting the device from the computer is like this.

    Is it possible that the command dev=/dev/ttyACM0 needs to be modified?

Reply Children
No Data
Related