On NuttX side run “rz” command to receive files:
nsh> rz
**B0900000000a87c
**B0800000000022d
On Linux side run:
$ stty 115200 cs8 -parenb -crtscts -F /dev/ttyACM0
$ sz –zmodem nuttx_logo.txt > /dev/ttyACM0 < /dev/ttyACM0
You will see:
Sending: nuttx_logo.txt
Bytes Sent: 1942 BPS:196
On NuttX side you can see the received file:
nsh> cd /tmp
nsh> ls/tmp:
nuttx_logo.txt