AO-LOAD(1)

πŸŽ€ AO-LOAD(1) πŸŽ€

Okay so this is the General Commands Manual page, and I'm about to make it slay πŸ’… ao-usbload is the tool that flashes a program onto an ARM-based AltOS device 🧚

✨ NAME ✨

ao-usbload is how you flash a program to an ARM-based AltOS device πŸ’Ύ

✨ SYNOPSIS ✨

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

✨ DESCRIPTION ✨

ngl this is the main vibe πŸ¦‹ ao-usbload loads your .elf or .ihx file straight into the target device's flash memory through the AltOS boot loader. It can reuse the serial number and radio calibration values already on the device, or you can hand it those values yourself from the command line πŸ’–

✨ OPTIONS ✨

  • -T tty-device, --tty tty-device β€” pick which tty device the debugger talks to the target through πŸ”Œ The special name 'BITBANG' tells ao-dbg to use the cp2103 connection. Otherwise, it should be a usb serial port hooked up to a suitable cc1111 debug node.
  • -D AltOS-device, --device AltOS-device β€” go hunting for a connected device πŸ‘€ The argument has to look like one of these:
TeleMega:2
TeleMega
2

Leave out the product name and the tool picks a suitable product for you. Leave out the serial number and it'll match one of the available devices. Main character energy, honestly πŸ‘‘

  • -s serial-number, --serial serial-number β€” programs the device serial number into the image πŸ”’ If you don't give one, the tool reads the existing serial number off the device (if there is one).
  • -c radio-calibration, --cal radio-calibration β€” programs the radio calibration value into the image πŸ“‘ This is for hardware that has no eeprom storage for it. Skip the value and the existing one gets used. If you need to compute a new one, you'll need the current radio calibration value, the measured frequency, and the desired frequency:
cal' = cal * (desired/measured)

The default calibration value is 7119667 ✨

✨ USAGE ✨

Here's the lowkey tea πŸ“ ao-usbload reads the specified .elf file into memory and edits the image to customize it with your serial number and radio calibration values. Then it connects to the debug dongle and writes the program into the target device's flash memory. Periodt πŸ’…

✨ AUTHOR ✨

Keith Packard 🫢


That's the whole page, bestie! πŸ’œ Source: ao-usbload 🌈 Manual: AO-LOAD(1) πŸ¦‹ Stay flashy 😭πŸ”₯

πŸ“¦ where this page comes from