DOKK / manpages / debian 11 / altos / ao-usbload.1.en
AO-LOAD(1) General Commands Manual AO-LOAD(1)

ao-usbload - flash a program to an ARM-based AltOS device

ao-usbload [-T tty-device] [--tty tty-device] [-D altos-device] [--device altos-device] [--cal radio-calibration] [--serial serial-number] [--raw] [--verbose=verbose] [--wait\ file.elf or file.ihx

ao-usbload loads the specified .elf or .ihx file into the target device flash memory via the AltOS boot loader, using either existing serial number and radio calibration values or taking either of those from the command line.

This selects which tty device the debugger uses to communicate with the target device. The special name 'BITBANG' directs ao-dbg to use the cp2103 connection, otherwise this should be a usb serial port connected to a suitable cc1111 debug node.
Search for a connected device. This requires an argument of one of the following forms:
TeleMega:2
TeleMega
2
Leaving out the product name will cause the tool to select a suitable product, leaving out the serial number will cause the tool to match one of the available devices.
This programs the device serial number into the image. If no serial number is specified, then the existing serial number, if any, will be read from the device.
radio calibration value into the image for hardware which doesn't have any eeprom storage for this value. If no calibration value is specified, an existing calibration value will be used. The value here can be computed given the current radio calibration value, the measured frequency and the desired frequency:
cal' = cal * (desired/measured)
The default calibration value is 7119667.

ao-usbload reads the specified .elf file into memory, edits the image to customize it using the specified serial number and radio calibration values. It then connects to the debug dongle and writes the program to the target device flash memory.

Keith Packard

ao-usbload