zephyr: Unable to upload firmware over serial with mcumgr

Following along the guide in the samples/subsys/mgmt/mcumgr/smp_svr/README but using --conntype=serial most of the commands work just fine except the image upload command fails.

mcumgr --conntype=serial --connstring=/dev/ttyACM0 image upload signed.bin  ✔  4332  10:40:58 
 0 B / 109.36 KiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%
Error: NMP timeout

Is there another conntype I should be using? The docs elude to a shell conntype but I didn’t see that in the docs for mcumgr

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (3 by maintainers)

Most upvoted comments

@bfrog An example of proper connection parameters. sudo ./mcumgr image list --conntype=serial --connstring='dev=/dev/ttyACM0,baud=115200'

The mcumgr Go app doesn’t use flow control (it is imposible due serial library used).