tree: 2234f02ade23ea042a73a2002c1836817070d0c9 [path history] [tgz]
  1. boot.cc
  2. BUILD.gn
  3. cmd.cc
  4. command.h
  5. download.cc
  6. enable.cc
  7. main.cc
  8. README.md
  9. readtest.cc
  10. status.cc
  11. watch.cc
hps/util/README.md

Host utilities build and use

Building

To build the host utilities:

sudo emerge hps-tool

Running the host utilities

To run the utilities:

hps [ --ftdi | --test | --bus <i2c-bus> ] [ --addr <i2c-addr> ] <command> <command arguments>

--ftdi selects a FTDI USB connection to the device. --test selects an internal test device. --bus selects direct I2C via this I2C bus. --addr sets the I2C peripheral address to use.

The following commands are supported:

hps status   # Read the common status registers and display them
hps cmd <value> # Send a command to the module.
hps dl <bank> file # Download the file to the bank selected
hps readtest [iterations] # Read all of the registers and verify their value