Make sure that you have an arm-eabi-none gcc toolchain and dfu-util installed.
git clone https://fuchsia.googlesource.com/zedmon --recurse-submodules cd zedmon/firmware make
The builds output will end up in ./build-zedmon.
To upload the firmware to zedmon, the device needs to be in DFU mode. To enter DFU mode:
boot0 button.reset button.boot0 button.Once the device is in DFU mode, you can upload the firmware with dfu-util:
dfu-util -a 0 -s 0x08000000:leave -D build-zedmon/lk.bin -d 0483:df11
zedmon Command Line UtilityOn Debian-based systems, the following command will install packages required to build the command line utility:
sudo apt-get install golang libusb-1.0-0-dev
The zedmon utility is written in Go. Because it is hosted on fuchsia.googlesource.com, it can not simply be fetched with go get. Instead you'll need to check it out manually:
mkdir -p zedmonutil/src/fuchsia.googlesource.com cd zedmonutil export GOPATH=`pwd` cd src/fuchsia.googlesource.com git clone https://fuchsia.googlesource.com/zedmon cd $GOPATH go get fuchsia.googlesource.com/zedmon/cmd/zedmon go install fuchsia.googlesource.com/zedmon/cmd/zedmon
The output executable will be in ./bin/zedmon.
Currently the zedmon utility simply gets the time delta between the local machine and the zedmon device then starts recording samples and saving them to zedmon.csv in the current directory.