nicovince opened a new issue #17: URL: https://github.com/apache/mynewt-mcumgr-cli/issues/17
Hello, I'm working with a nucleo f429zi and I'm trying to setup the [sample](https://docs.zephyrproject.org/latest/samples/subsys) provided by Zephyr to get mcumgr working. I compiled the firmware for UDP connection: ``` west build -p auto -b nucleo_f429zi -d build_f429/smpsvr zephyr/samples/subsys/mgmt/mcumgr/smp_svr/ -- -DOVERLAY_CONFIG=overlay-udp.conf ``` I'm using go1.15.3, I downloaded mcumgr through `go get github.com/apache/mynewt-mcumgr-cli/mcumgr`. mcumgr manages to list the images available on the target: ```bash ~/go/bin/mcumgr --conntype udp --connstring=[192.168.1.1]:1337 image list Images: image=0 slot=0 version: 0.0.0 bootable: true flags: active confirmed hash: 88f4caa07e1391eb592261e185d2f7cc1d235ab3860e0749e3f602243207ed55 Split status: N/A (0) ``` Unfortunately an upload operation fails: ```bash ~/go/bin/mcumgr --conntype udp --connstring=[192.168.1.1]:1337 image upload build_f429/smpsvr/zephyr/zephyr.signed.bin 0 / 90644 [------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00% Error: ImageUpload unexpected error after 0/90644 bytes ``` with -ldebug option, I get the following: [mcumgr_debug.txt](https://github.com/apache/mynewt-mcumgr-cli/files/5423036/mcumgr_debug.txt) It seems to be related with TxRxMgmtAsync, looking at `mynewt.apache.org/newtmgr/nmxact/udp/udp_sesn.go`, the function seems to always return "unsupported" (I don't know anything about Go, I just had a naive look at the code). Is there any way to get udp connection working, maybe download an older version of mcumgr ? If so, how ? I did not see any release of mynewt-mcumgr-cli or how to specify the package version when doing a `go get` Thanks. Nicolas. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
