Provides list of all available commands
$help
$readport [port 0-6] [mask] – Masked pins input, read IO port
$setport [port 0-6] [mask] [val] - Set masked pins hi/loon Port output 1 or 0
$readadc [ch 0-15] - Readan ADC channel
$setdac [0 or 1] [0x0 – 0xfff] – Set DAC0 or DAC1 output
$romlwr [addr] [data32] – Write word to SPI boot FRAM
$romlrd [addr] Read word from SPI boot FRAM
$auxwr [addr] [data32] - Write word to aux FRAM
$auxrd [addr] – Read word from aux FRAM
$ebiinit – Initialize external mem interface
$ebiwrite [addr] [data32] – Write word to EBI
$ebiread [addr] – Red word from EBI
$cantest – CAN bus loopback test
$ethtest – Ethernet test
$spwtest – SpaceWire test
$i2ctest – I2C test I2C1(m) -. I2C2(s)
$accel [(opt) 1: enable every sec] – Get accelerometer data
$brdtmp [(opt) 1: en every sec] – Get board temperature
$rsts – Read reset source register
$fwver – Get firmware version
$srst – Software reset
$help – Print help
Note:
$i2ctest - Requires I2CA and I2CB be externally connected together
$cantest – Requires CAN0 and CAN1 be externally connected together
Ports A through port G are read and a 16-bit hex value is displayed for ports A-F and 8-bit hex
value is read for port G. Ports A through G are accessed with portNum 0 through 6.
Example: $readport 0 0x00ff
Response: OK 0x1234
Note: Some GPIO are dedicated to certain peripherals by the software included with this
package.
PORTA [7:4]: SPI2
PORTB [15:12]: UART1
PORTF [5:2]: SPI1
PORTF [9:6]: UART2
PORTG [1:0]: UART0
PORTG [4]: SPI1 (FRAM chip select)
Sets a single port to a value depending on the mask
Example: $setport 0 0x00ff 0x0055
Response: “OK if port number is valid, “ERR is reported for invalid port number.