Hydrabus

Features
Support many extensions:
HydraNFC - Hydrabus shield for NFC
HydraFlash - NAND flash shield
HydraLINCAN - Hydrabus shield for LIN and CAN buses
External interactions:
Firmware
hydrabus/hydrafw - HydraFW official firmware for HydraBus/HydraNFC
hydrabus/hydrafw_hydranfc_shield_v2 - HydraFW dedicated to HydraBus v1 / HydraNFC Shield v2
bvernoux/blackmagic - In application debugger for ARM Cortex microcontrollers
Firmware Update
Detailed steps: hydrafw/Getting-Started-with-HydraBus-flash-and-use-hydrafw-on-linux
Install
dfu-utilDownload the latest release of the firmware
Keep pressing
UBTNbutton atPowerON/RESETin order to enterUSB DFUConnect the MicroUSB cable from your PC to HydraBus
Check Linux detection for HydraBus in DFU mode:
sudo dfu-util -lFlash the firmware:
sudo dfu-util -i 0 -a 0 -d 0483:df11 -D ./build/hydrafw.dfu
Commands
Basic info:
show systemDetermine the port name:
ls -l /dev/tty*Interact witht the HydraBus:
screen /dev/ttyACM0Switch to SPI mode:
spiDetermine the pin for SPI:
show pins
Syntax
[
Chip select (CS) active (low)
]
CS disable (high)
r
Read one byte by sending dummy byte (0xff). r:1...255 for bulk reads
hd
Read one byte by sending dummy byte (0xff). hd:1...4294967295 for bulk reads. Displays a hexdump of the result
w
Followed by values to write byte(s). w:1...255 for bulk writes
0b
Write this binary value. Format is 0b00000000 for a byte, but partial bytes are also fine: 0b1001
0
Write this Octal value. Format is prefixed by a 0 (values from 000 to 077)
"
Write an ASCII-encoded string
0h/0x
Write this HEX value. Format is 0h01 or 0x01. Partial bytes are fine: 0xA. A-F can be lower-case or capital letters
0-255
Write this decimal value. Any number not preceded by 0x, 0h, or 0b is interpreted as a decimal value
Examples:
Read Identification (0x9F):
[ 0x9F r:3 ]Read Data (0x03) at the address (0x00:3) and read 32 bytes (hd:32)
[ 0x03 0x00:3 hd:32 ]
References
Last updated