| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Need to pass the single-byte verisons to getopt_long
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
above
35C at times in Bdale and Robert's production testing
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
MicroPeak doesn't have flight states like this...
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This reads from the raw descriptor to help validate the hardware.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Create C-based frequency calibration program to replace shell script
which isn't reliable.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
There was an extra newline and missing space.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This new script uses openocd to flash stm32f0x parts
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
ao-usbtrng reads a specified number of kilobytes of random data from
a random number generator.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This waits forever for USB writes to complete, instead of timing out
after five seconds. Useful when debugging the device.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
Verbose dumps some data while sending packets.
Fake sends constructed packets, once every 500ms.
Rate sets the transmit bit rate.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This must have been left over from testing; it prints "device (null)",
which isn't very useful.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Add a newline before printing out the flags and sats at exit time
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This waits for GPS to report lock
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This C version may be more reliable than the nickle version
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Add state tracking so the telemetry sending code works.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
These make it possible to encode/decode GPS data from telemetry and
eeprom files
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This takes altitude and computes the 'normal' temperature for
that.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
C versions of the test programs used to validate hardware prior to ship
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
This reverts commit 428d09294ba0395fedd71346ad00fd90a4cdde97.
|
|
|
|
|
|
|
| |
TeleGPS encodes state in a spare gps location packet byte, masking in
0x80 to signify that the state value is valid
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This writes raw bytes to the USB port; useful for sending binary data
for flashing or the upcoming flight test stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
For devices which report the range of valid flash addresses from their
boot loader, check the loaded image to make sure it fits within that range.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Remove unused 'default_addr' field. Use named initializers when
setting up the struct.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
ao-load doesn't use ao-editaltos at this point, but does share the
same name for the symbol table. To make the linker happier, make the
ao-load version static.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
For some reason, USB devices take 'a while' to become usable; instead
of bailing immediately, sit around waiting to see if the device
becomes usable if we get an EBUSY or EACCES error.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
The program meta-command is supposed to do the whole thing, and seems
more reliable in actually getting what we want flashed to the board.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
These aren't very wordy, but these tools are pretty simple scripts.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
st-flash, from the stlink tools, appears more reliable when flashing
STM CPUs.
Signed-off-by: Keith Packard <keithp@keithp.com>
|