Command line tool for streamlining MSP-based FC development
MIT License
msp-tool is a command line tool for streamlining the write/compile/flash/debug cycle in MSP based flight controller firmwares.
It's regularly tested with both iNAV and Betaflight, but should work with any other MSP based firwmare.
msp-tool is under development, so there are no binary releases at this time. Instead, developers should install it from its source.
To do so, install Go in your system, then type the following command:
$ go get -v github.com/fiam/msp-tool
msp-tool will be installed to ${GOPATH}/bin.
To start msp-tool, the only required argument is -p
, which indicates the
serial port it should open to connect to the flight controller. Once connected,
it will print some information about the firmware and the board. For example:
$ msp-tool -p /dev/tty.usbmodem14211
Connected to /dev/tty.usbmodem14211 @ 115200bps. Press 'h' for help.
MSP API version 2.1 (protocol 0)
INAV 1.9.0 (board OBSD, target OMNIBUSF4PRO)
Build 2bcdc237 (built on Feb 16 2018 @ 23:16:49)
[DEBUG] [ 4.794] Barometer calibration complete (1931)
[DEBUG] [ 5.413] Gyro calibration complete (-37, 23, -46)
msp-tool will automatically enable DEBUG_TRACE
output from the FC and
print all output to the terminal. Additionally, it supports keyboard shortcuts
for the following functions:
msp-tool allows quickly rebuilding the firmware and flashing it to the board with
a single keystroke via the f
shortcut. To do so, you need to tell msp-tool a couple
more things via command line arguments:
-s
command line option..
(the current directory), so it doesn't need to be provided-t
command line option. Note that this is not neededFor example:
$ msp-tool -p /dev/tty.usbmodem14211 -s ~/src/inav -t OMNIBUSF4PRO
Note that flashing requires dfu-util
to be present in your $PATH, since it's used to
actually download the firmware into the flight controller.
Call msp-tool with the -h
argument to print a list of all the available
command line options.
I'm usually idling in both INAV's and Betaflights's Slack rooms as alberto. Feel free to send me a message if you'd like to discuss new features.