apache / mynewt-mcumgr-cli

MCU Manager CLI
https://mynewt.apache.org/
Apache License 2.0
63 stars 39 forks source link

Unable to list image over serial with mcumgr #16

Closed GFilosofi closed 4 years ago

GFilosofi commented 4 years ago

Hi, I have a nRF5340 based target board running SMP server plus MCUmgr. My ultimate goal is to reproduce on Windows the DFU over serial connection I already do on Linux. Tese are the steps I've followed on Windows 10

1) download mcumgr source zip from https://github.com/apache/mynewt-mcumgr-cli 2) unzip and rename resulting directory to $GOPATH/src/mynewt.apache.org/mcumgr 3) go in the source directory and build

cd C:\Users\gabriele\go\src\mynewt.apache.org\mcumgr\mcumgr go build 4) Check out version mcumgr version mcumgr 0.0.0-dev 5) Test with target mcumgr --conntype serial --connstring=COM2 image list Error: NMP timeout

Take a look to this picture I can grab the same data over serial connection, however on Windows I get the error. Any idea ? Thanks

GFilosofi commented 4 years ago

mcumgr_issue

GFilosofi commented 4 years ago

If I rebuild & flash the smp_svr project (zephyr/samples/mgmt/mcumgr/smp_svr/) the mcumgr CLI works with Windows host. If I copy the main.c of smp_svr into my project then rebuild & flash, the mcumgr CLI does not works with Windows host. No problem with Linux host in either cases.

GFilosofi commented 4 years ago

This switch CONFIG_UART_0_NRF_FLOW_CONTROL=y prevents mcumgr client to work properly on Window 10 host. At this moment I don't know why.