summaryrefslogtreecommitdiff
path: root/ao-tools
Commit message (Collapse)AuthorAge
* ao-tools/ao-eeprom: Add support for TeleFireTwoKeith Packard2019-07-16
| | | | | | | Display converted pressure and thrust data along with raw thermistor data. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-eeprom: Add altitude data for baro valuesKeith Packard2019-07-16
| | | | | | Displays altitude along with pressure and temp for baro sensor data. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add atmosphere modelKeith Packard2019-07-16
| | | | | | Converts between pressure and altitude Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-telem: Fix man page and usage to match codeKeith Packard2019-07-15
| | | | | | ao-telem just parses .telem files. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Change ao-eeprom into eeprom analysis toolKeith Packard2019-07-15
| | | | | | | | | ao-eeprom used to be a TeleMetrum v0.2 specific tool for fetching eeprom contents from that device. ao-dumpflash handles that case now. ao-eeprom now parses .eeprom files and displays their contents. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-dump-up: Document --wait flagKeith Packard2019-02-18
| | | | | | | --wait means to poll for a µPusb device instead of bailing when none exists at startup. Quite useful for testing a batch of new device. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove ao-chaosreadKeith Packard2019-01-07
| | | | | | This program is now provided by the independent chaosread program. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-telem: Print out 'log_max' value. Clean up compiler warnings.Keith Packard2019-01-03
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-cal-accel: Initialize byte count var 'l'Keith Packard2019-01-03
| | | | | | When left uninitialized, the program would randomly segfault at startup. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-load: Return status from 'rewrite'Keith Packard2019-01-03
| | | | | | Was just falling off the end of this function, returning a random value. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Fix warnings in ao-toolsKeith Packard2019-01-03
| | | | | | None of these appear likely to have caused actual problems. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add lots of compiler warning flags to ao-tools buildKeith Packard2019-01-03
| | | | | | | This catches some uninitialized variable errors which cause ao-cal-accel to crash (fixes coming next) Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Spelling fixes in a couple of man pagesKeith Packard2018-10-22
| | | | | | ao-dbg.1 and ao-eeprom.1 Signed-off-by: Keith Packard <keithp@keithp.com>
* add new script that uses openocd to reset an LPC targetBdale Garbee2018-10-08
|
* ao-tools/ao-cal-freq: Add --nosave and --output options. Check save results.Keith Packard2018-10-02
| | | | | | | | | --nosave means don't attempt to update the on-device configuration data in eeprom. --output means write the calibration value to a file. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-dumplog: Dump entire eeprom contentsKeith Packard2018-08-05
| | | | | | | This gets the eeprom size from the device and uses that to dump the whole thing. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-chaosread: Add support for the new flash endpoint in chaoskeyKeith Packard2018-05-07
| | | | | | | This adds support for endpoint 0x87, which streams the contents of the onboard flash to the host for firmware verification. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-usbload: Flip product names in loader error messageKeith Packard2018-03-16
| | | | | | | I was reversing the 'target' vs 'image' names in the error message, leading to a bit of confusion. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-chaosread: add --raw and --cooked flagsKeith Packard2018-01-07
| | | | | | Allow reading from the cooked endpoint as well as the raw one. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-chaosread: Add -Wall -Wextra, clean up resultsKeith Packard2017-09-12
|
* ao-tools/ao-makebin: have git ignore built objectBdale Garbee2017-04-25
|
* ao-test-baro: Be more lax about altitude checksKeith Packard2017-04-21
| | | | | | | High pressure here today and the altimeter is reading -69m. Allow down to -100m when testing baro values. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-elftohex: Add conditions for skipping ELF sectionsKeith Packard2017-04-09
| | | | | | | | | Skip sections with size 0, or which are of type SHT_NOBITS or which don't have the SHF_ALLOC flag set. This avoids crashing on sections which don't have any data to copy. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-flash-stm: Use openocd instead of st-utilsKeith Packard2017-03-05
| | | | | | | openocd upstream and debian package can both flash stm32l processors, so use that in preference to st-flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-flash-lpc: Adapt to current openocd LPC supportKeith Packard2017-03-02
| | | | | | | | | | | | | Openocd 0.9.0 has generalized the lpc11xx support for all lpc11xx processors, not just the lpc11u14. This replaces the specific lpc11u14.cfg with the general lpc11xx.cfg file. Unlike the build we were using, this doesn't adjust the 'verify' command to adapt for the checksum which gets added during the flashing process. Hence, we disable verification and trust that if the flash loader works to load the OS, it's fine. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-usbload: Pad image with 0xff instead of random bitsKeith Packard2017-02-20
| | | | | | | | Clear the temporary block to 0xff before copying in the target data so that any unused bytes end up being left at 0xff instead of inheriting whatever data was in the block before. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-cal-freq: Re-open usb device each tryKeith Packard2016-09-02
| | | | | | | | Instead of trying to re-use the same file descriptor, close and re-open the device each time around the loop to avoid getting stuck when calibrating TeleMega boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-usbload: Fix -f flag, remove debug hacksKeith Packard2016-09-02
| | | | | | | | The code to validate the usb id and product name had some debug hacks left enabled, which caused it to fail. The short -f version of the force flag was also not getting parsed correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-cal-freq: --verbose option has no parameterKeith Packard2016-08-31
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-usbload: Check target device name to avoid mis-flashingKeith Packard2016-08-14
| | | | | | | | | Instead of blindly loading firmware, go get the old device's name and make sure it matches the new firmware. Add --force option to allow this to be overridden. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-chaosread: Parse -i and -b optionsKeith Packard2016-08-14
| | | | | | Need to pass the single-byte verisons to getopt_long Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-chaosread: Eliminate double-free when serial match failsKeith Packard2016-08-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-chaosread: Add --infinite and --bytes optionsKeith Packard2016-08-02
| | | | | | | | | | | The --infinite option keeps writing data. The --bytes options pulls out bits 1-8 which should provide 8 true bits of entropy. This combination allows ao-chaosread to be fed directly into dieharder to validate the hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-chaosread: Document length (-l) optionKeith Packard2016-06-29
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* extend "ok" temp range to 40C, since battery charger on bench can drive temp ↵Bdale Garbee2016-06-12
| | | | | | above 35C at times in Bdale and Robert's production testing
* ao-tools: Add ao-makebinKeith Packard2016-03-18
| | | | | | | | This constructs a raw binary or DFU format file for use with dfu-util, which can be used with a bare STM processor to load code before the boot loader is available. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add ao_hex_image_cat functionKeith Packard2016-03-18
| | | | | | | This takes two images and constructs a third containing the union of the contents along with 0xff bytes for any area between them. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Remove trailing whitespace from ao-elf.cKeith Packard2016-03-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-dump-up: Remove spurious flight state stringsKeith Packard2016-03-18
| | | | | | MicroPeak doesn't have flight states like this... Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-chaosreadKeith Packard2016-03-02
| | | | | | This reads from the raw descriptor to help validate the hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-dbg: Stop using sigvecKeith Packard2015-12-23
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-telem: Add companion packet telemetry data printingKeith Packard2015-08-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: Use local versions of tools instead of /usr/bin for turnon_easymegaKeith Packard2015-06-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add missing ao-cal-freq man pageKeith Packard2015-06-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Create ao-cal-freqKeith Packard2015-06-05
| | | | | | | Create C-based frequency calibration program to replace shell script which isn't reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-dump-up: Add --wait option to make testing µPusb easierKeith Packard2015-05-19
| | | | | | | | The --wait option hangs around until a suitable device appears, so that you can test a pile of µPusb devices without needing to constantly interact with the command line. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-list: Show devices that have no TTYKeith Packard2015-03-10
| | | | | | | chaoskey doesn't advertise itself as a modem, so the kernel doesn't allocate a tty device. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-mega: Clean up formatting of pyro status messagesKeith Packard2015-03-10
| | | | | | There was an extra newline and missing space. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-flash-stm32f0xKeith Packard2015-03-02
| | | | | | This new script uses openocd to flash stm32f0x parts Signed-off-by: Keith Packard <keithp@keithp.com>