-
Notifications
You must be signed in to change notification settings - Fork 2
Command Line interface
Peter Wittich edited this page Jul 11, 2019
·
10 revisions
The CL is available via the UART (front panel or eventually Zynq). As of 7/11 the available commands are listed below.
The I2C controllers that can be currently addressed are
- I2C 1 (for power supplies)
- I2C 2 (for clock synthesizer)
- I2C 3 (for FF devices on the VU7P)
- I2C 4 (for FF devices on the KU15P)
- I2C 6 (for the two FPGAs)
- the ADC command output for the last four outputs (ADCIN 16-19) are weird. This affects the 3.3V, the V_MGTY2_VCCAUX, V_MGTY2_AVCC and V_MGTY2_AVTT voltages. Please ignore these values.
- to use the command line interface to manipulate the I2C 1 device you must first stop the monitoring task which reads the PMBUS status registers. This can be done via
task MON suspendand restarted viatask MON resume. The way this is implemented it just freezes the FreeRTOS task, so there might be some residual errors when you restart the task.
The output of the help command is listed below.
help:
Lists all the registered commands
task-stats
Displays a table showing the state of each FreeRTOS task
i2cr <address> <number of bytes>
Read I2C controller. Addr in hex.
i2c_base <device>
Set I2C controller number. Value between 0-9.
i2crr <address> <reg> <number of bytes>
Read I2C controller. Addr in hex
i2cw <address> <number of bytes> <value>
Write I2C controller.
i2cwr <address> <reg> <number of bytes>
Write I2C controller.
i2c_scan
Scan current I2C bus.
pwr (on|off|status)
Turn on or off all power.
led (0-4)
Manipulate red LED.
mon <#>
Displays a table showing the state of power supplies.
adc
Displays a table showing the state of ADC inputs.
task <name> <command>
Manipulate task <name>. Options are suspend and restart.