Allow setting the UART MTU from input to utilize larger serial packet.

This allows to speed up flashing by using larger UART buffer without the need to
recompile newtmgr.

Default setting is not changed, but now the mtu argument to --connstring=COM55,baud=1000000,mtu=512 will be used.
1 file changed
tree: 5df4d118bd278a570a41f00896c780e44e6f5c27
  1. .github/
  2. docs/
  3. newtmgr/
  4. nmxact/
  5. .gitignore
  6. .rat-excludes
  7. go.mod
  8. go.sum
  9. LICENSE
  10. Makefile
  11. NOTICE
  12. README.md
  13. RELEASE_NOTES.md
README.md

Newtmgr

Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. The newtmgr tool documentation can be found under /docs which are published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html

Building

Build the newtmgr tool as follows:

  1. Unpack newtmgr source.
  2. Rename resulting apache-mynewt-newtmgr-1.9.0 directory to $GOPATH/src/mynewt.apache.org/newtmgr
  3. cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
  4. GO111MODULE=on go build