fw/altos
10 years agoaltos: Execute self-test on MMA655X part
Keith Packard [Sat, 21 Dec 2013 06:04:53 +0000 (22:04 -0800)]
altos: Execute self-test on MMA655X part

This doesn't check for fine calibration, just makes sure the part is
within the broad tolerances specified by the manufacturer. The subtle fix
here was actually getting reset working -- there was a typo in the
bitpattern definition which caused the reset to fail, making it hard
to self-test the part, as self-test is only valid before the part is running.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Bump library version
Keith Packard [Sat, 21 Dec 2013 03:44:38 +0000 (19:44 -0800)]
altoslib: Bump library version

Prepare for next release by making sure we notice that the API/ABI for
this library has changed.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Add imu and mag sensor values to plots
Keith Packard [Sat, 21 Dec 2013 03:40:31 +0000 (19:40 -0800)]
altosui: Add imu and mag sensor values to plots

Makes for a lot of potential graph elements.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosuilib: Rearrange graph enable buttons
Keith Packard [Sat, 21 Dec 2013 03:39:40 +0000 (19:39 -0800)]
altosuilib: Rearrange graph enable buttons

Eliminate separate 'enable' radio button, provide for multiple columns

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Fetch 'orient' value from Mega Sensor packet
Keith Packard [Sat, 21 Dec 2013 03:38:29 +0000 (19:38 -0800)]
altoslib: Fetch 'orient' value from Mega Sensor packet

The mega sensor packet had a spare byte to hold the current
orientation value.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Convert IMU and Mag sensor values to useful units
Keith Packard [Sat, 21 Dec 2013 03:37:08 +0000 (19:37 -0800)]
altoslib: Convert IMU and Mag sensor values to useful units

Convert from raw sensor values to metric units

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosdroid: improve build system dependencies
Mike Beattie [Fri, 20 Dec 2013 02:06:37 +0000 (15:06 +1300)]
altosdroid: improve build system dependencies

Signed-off-by: Mike Beattie <mike@ethernal.org>
10 years agoaltosdroid: update to latest google play services
Mike Beattie [Fri, 20 Dec 2013 02:06:07 +0000 (15:06 +1300)]
altosdroid: update to latest google play services

Signed-off-by: Mike Beattie <mike@ethernal.org>
10 years agoaltosdroid: force older jarsigner signing algorithm for java 1.7
Mike Beattie [Fri, 20 Dec 2013 02:05:42 +0000 (15:05 +1300)]
altosdroid: force older jarsigner signing algorithm for java 1.7

(increment versionCode, re-upload to Play Store)

Signed-off-by: Mike Beattie <mike@ethernal.org>
10 years agoupdated notes from 1.3 release
Bdale Garbee [Thu, 19 Dec 2013 10:22:21 +0000 (03:22 -0700)]
updated notes from 1.3 release

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos 1.3
Bdale Garbee [Thu, 19 Dec 2013 09:00:10 +0000 (02:00 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agofix missing newline at end of src/test/Makefile
Bdale Garbee [Thu, 19 Dec 2013 08:58:24 +0000 (01:58 -0700)]
fix missing newline at end of src/test/Makefile

10 years agoaltosui: Ship EasyMini firmware too
Keith Packard [Thu, 19 Dec 2013 08:58:50 +0000 (00:58 -0800)]
altosui: Ship EasyMini firmware too

Missing the FIRMWARE_EMINI define left all easy mini firmware out of
the distribution

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate ChangeLog from git
Bdale Garbee [Thu, 19 Dec 2013 08:29:55 +0000 (01:29 -0700)]
update ChangeLog from git

10 years agoaltosdroid: bump versionName to 1.3 and versionCode to 4
Keith Packard [Thu, 19 Dec 2013 08:16:16 +0000 (00:16 -0800)]
altosdroid: bump versionName to 1.3 and versionCode to 4

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: When device has no valid romconfig, set RF cal to 0
Keith Packard [Thu, 19 Dec 2013 08:12:21 +0000 (00:12 -0800)]
altosui: When device has no valid romconfig, set RF cal to 0

This is intended to signal to the user that no valid value was found
and that they'd best pick something sensible.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos/lpc: Stop sending SETUP IN when the requested size is reached
Keith Packard [Thu, 19 Dec 2013 08:08:50 +0000 (00:08 -0800)]
altos/lpc: Stop sending SETUP IN when the requested size is reached

The host won't keep asking for SETUP IN packets once it has received
the amount of data requested, so check to see if we've sent that much
and flip back to IDLE state if so.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos/lpc: Reset less of the device on USB reset.
Keith Packard [Thu, 19 Dec 2013 07:27:34 +0000 (23:27 -0800)]
altos/lpc: Reset less of the device on USB reset.

This leaves most of the device configured across USB reset, which
appears to help when sending a IN reply to the first SETUP packet;
without this change, the IN reply would always get a length of 0,
which is fine for SET_ADDRESS, but not for GET_DESCRIPTOR_DEVICE,
which OS X appears to send before setting the address (go figure).

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Remove some old debug printfs for self flashing
Keith Packard [Thu, 19 Dec 2013 06:00:13 +0000 (22:00 -0800)]
altoslib: Remove some old debug printfs for self flashing

These aren't necessary anymore and just slow down flashing boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agomicropeak: Add micropeak man page
Keith Packard [Thu, 19 Dec 2013 05:08:33 +0000 (21:08 -0800)]
micropeak: Add micropeak man page

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoao-tools: Add man pages for ao-flash utilities
Keith Packard [Thu, 19 Dec 2013 05:02:15 +0000 (21:02 -0800)]
ao-tools: Add man pages for ao-flash utilities

These aren't very wordy, but these tools are pretty simple scripts.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 19 Dec 2013 04:53:52 +0000 (21:53 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoupdate Debian standards version we claim compliance with
Bdale Garbee [Thu, 19 Dec 2013 04:53:36 +0000 (21:53 -0700)]
update Debian standards version we claim compliance with

10 years agoaltos: Try IMU self-test 10 times before giving up
Keith Packard [Thu, 19 Dec 2013 04:32:05 +0000 (20:32 -0800)]
altos: Try IMU self-test 10 times before giving up

This should keep the device from failing to boot unless the IMU is
actually broken. Oh, and if self test does fail, this places the
flight computer in 'Invalid' state rather than panic.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agodoc: Add tables describing AltOS beeps and flashes
Keith Packard [Thu, 19 Dec 2013 04:30:58 +0000 (20:30 -0800)]
doc: Add tables describing AltOS beeps and flashes

Provide a convenient place to reference when listening to the device.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos/stm: Semantic error in STM usb disable caused it to not work
Keith Packard [Thu, 19 Dec 2013 02:20:55 +0000 (18:20 -0800)]
altos/stm: Semantic error in STM usb disable caused it to not work

The USB enable register wasn't actually getting rewritten with the
enable bit turned off, so the USB device was still powered on in flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoupdate release docs to include option for submodules
Bdale Garbee [Thu, 19 Dec 2013 01:30:54 +0000 (18:30 -0700)]
update release docs to include option for submodules

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Thu, 19 Dec 2013 01:25:35 +0000 (18:25 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agowe're using packaged and local-to-our-tree ARM toolchain now
Bdale Garbee [Thu, 19 Dec 2013 01:25:03 +0000 (18:25 -0700)]
we're using packaged and local-to-our-tree ARM toolchain now

10 years agodoc: typo in micropeak doc hole->hold
Keith Packard [Wed, 18 Dec 2013 22:34:31 +0000 (14:34 -0800)]
doc: typo in micropeak doc hole->hold

10 years agodoc: Update micropeak quick start guide to note new boost detect
Keith Packard [Wed, 18 Dec 2013 22:25:41 +0000 (14:25 -0800)]
doc: Update micropeak quick start guide to note new boost detect

Now waits for one minute and 30m of altitude change to avoid false detections.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agomicropeak: Compile for java 6
Keith Packard [Wed, 18 Dec 2013 22:22:51 +0000 (14:22 -0800)]
micropeak: Compile for java 6

Don't a require later version as not all target OSes support it

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMove pdclib build results to pdclib-root
Keith Packard [Wed, 18 Dec 2013 22:08:41 +0000 (14:08 -0800)]
Move pdclib build results to pdclib-root

This makes pdclib easier to manage as a submodule

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Remove some debug printfs
Keith Packard [Wed, 18 Dec 2013 21:36:04 +0000 (13:36 -0800)]
altosui: Remove some debug printfs

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosdroid: Use altoslib standard voltages to control lights
Keith Packard [Wed, 18 Dec 2013 21:25:31 +0000 (13:25 -0800)]
altosdroid: Use altoslib standard voltages to control lights

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Define 3.8 as a good battery and 3.5 as a good igniter
Keith Packard [Wed, 18 Dec 2013 21:22:45 +0000 (13:22 -0800)]
altoslib: Define 3.8 as a good battery and 3.5 as a good igniter

Use defined values everywhere instead of copying. Adjust battery up to
3.8 to ensure there's enough voltage to not trip the comparators

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: create eeprom download thread before telling monitor about it
Keith Packard [Wed, 18 Dec 2013 21:09:48 +0000 (13:09 -0800)]
altoslib: create eeprom download thread before telling monitor about it

Telling the monitor too early resulted in passing a null thread
handle, which meant that 'cancel' wouldn't ever work.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Don't close telemetry reader at startup unless something fails
Keith Packard [Wed, 18 Dec 2013 20:40:22 +0000 (12:40 -0800)]
altoslib: Don't close telemetry reader at startup unless something fails

Was always closing the file, which led to very little telemetry being received.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agolibaltos: Import newly build libaltos.dylib
Keith Packard [Wed, 18 Dec 2013 20:16:55 +0000 (12:16 -0800)]
libaltos: Import newly build libaltos.dylib

10 years agolibaltos: remove usb id filtering from darwin code
Keith Packard [Wed, 18 Dec 2013 20:15:54 +0000 (12:15 -0800)]
libaltos: remove usb id filtering from darwin code

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agolibaltos: fix test harness main type
Keith Packard [Wed, 18 Dec 2013 20:15:22 +0000 (12:15 -0800)]
libaltos: fix test harness main type

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Add docs to Mac OS X dmg distribution
Keith Packard [Wed, 18 Dec 2013 19:25:05 +0000 (11:25 -0800)]
altosui: Add docs to Mac OS X dmg distribution

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 18 Dec 2013 19:19:31 +0000 (12:19 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

10 years agoa fresher changelog entry for test builds
Bdale Garbee [Wed, 18 Dec 2013 19:18:30 +0000 (12:18 -0700)]
a fresher changelog entry for test builds

10 years agoneed to include the Cortex toolchain
Bdale Garbee [Wed, 18 Dec 2013 18:08:55 +0000 (11:08 -0700)]
need to include the Cortex toolchain

10 years agofix git: path for pdclib
Keith Packard [Wed, 18 Dec 2013 19:14:40 +0000 (11:14 -0800)]
fix git: path for pdclib

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoUse git: path for pdclib
Keith Packard [Wed, 18 Dec 2013 19:12:44 +0000 (11:12 -0800)]
Use git: path for pdclib

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoIgnore .dll files in libaltos
Keith Packard [Wed, 18 Dec 2013 19:08:11 +0000 (11:08 -0800)]
Ignore .dll files in libaltos

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoao-tools: complain if st-flash is not available
Keith Packard [Wed, 18 Dec 2013 19:07:55 +0000 (11:07 -0800)]
ao-tools: complain if st-flash is not available

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: get stm-bringup building again
Keith Packard [Wed, 18 Dec 2013 18:55:06 +0000 (10:55 -0800)]
altos: get stm-bringup building again

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoRemove stale stm test apps from regular build
Keith Packard [Wed, 18 Dec 2013 18:53:09 +0000 (10:53 -0800)]
Remove stale stm test apps from regular build

10 years agoaltos/stm: Update pdclib paths for flash-loader builds
Keith Packard [Wed, 18 Dec 2013 18:50:45 +0000 (10:50 -0800)]
altos/stm: Update pdclib paths for flash-loader builds

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: create target pdclib directories before building
Keith Packard [Wed, 18 Dec 2013 18:43:16 +0000 (10:43 -0800)]
altos: create target pdclib directories before building

10 years agoaltos: Build pdclib locally if necessary
Keith Packard [Wed, 18 Dec 2013 18:01:29 +0000 (10:01 -0800)]
altos: Build pdclib locally if necessary

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoinclude pdclib in wrong place
Keith Packard [Wed, 18 Dec 2013 17:59:33 +0000 (09:59 -0800)]
include pdclib in wrong place

10 years agoaltosui: Hide non-applicable altimeter config values
Keith Packard [Wed, 18 Dec 2013 10:03:15 +0000 (02:03 -0800)]
altosui: Hide non-applicable altimeter config values

This makes configuring EasyMini a lot easier...

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos/lpc: Be a bit more resistant to toolchain section name changes
Keith Packard [Wed, 18 Dec 2013 10:02:12 +0000 (02:02 -0800)]
altos/lpc: Be a bit more resistant to toolchain section name changes

Just add some wild cards on the ends of each section name in case the
toolchain changes names in the future.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Pass InterruptedException up the stack instead of hiding it
Keith Packard [Wed, 18 Dec 2013 09:14:11 +0000 (01:14 -0800)]
altoslib: Pass InterruptedException up the stack instead of hiding it

When interrupting a thread that is talking to a serial device, it's
important not to have that thread discard the InterruptedException so
that it will actually terminate. This patch removes a bunch of places
that were discarding InterruptedExceptions and lets higher level code
see them so that they can exit cleanly.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Make TeleMega v0.1 work more like TeleMega v1.0
Keith Packard [Wed, 18 Dec 2013 09:12:11 +0000 (01:12 -0800)]
altos: Make TeleMega v0.1 work more like TeleMega v1.0

I've still got one working v0.1 board which is useful for testing
stuff, so make it work more like the released TeleMega:

 * Use E for drogue, F for main
 * Use on-chip eeprom for config
 * Fix ADC report printf to match

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Use all 16 bits of setup packet len when limiting reply len
Keith Packard [Wed, 18 Dec 2013 07:50:54 +0000 (23:50 -0800)]
altos: Use all 16 bits of setup packet len when limiting reply len

We were only using the low 8 bits of the setup packet reply max len,
which meant that if the other side sent a weird max len (as Windows 7
does), then we'd truncate our setup reply to whatever was in the low 8
bits of that value.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Add EasyMini bits to fat distribution images. Update telemetrum.inf
Keith Packard [Wed, 18 Dec 2013 06:53:45 +0000 (22:53 -0800)]
altosui: Add EasyMini bits to fat distribution images. Update telemetrum.inf

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agodoc: Publish images with HTML bits
Keith Packard [Wed, 18 Dec 2013 04:24:19 +0000 (20:24 -0800)]
doc: Publish images with HTML bits

Otherwise the html won't render right.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Broke TeleMetrum GPS reporting by holding the GPS mutex too much
Keith Packard [Wed, 18 Dec 2013 04:23:00 +0000 (20:23 -0800)]
altos: Broke TeleMetrum GPS reporting by holding the GPS mutex too much

We can't hold the GPS mutex while waiting for the GPS receiver to load
data as it protects the GPS data with the GPS mutex.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agodoc: Add screen shots everywhere
Keith Packard [Wed, 18 Dec 2013 04:05:12 +0000 (20:05 -0800)]
doc: Add screen shots everywhere

This has screen shots of every dialog in altosui

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd altosui image and attempt to add launch photo to title
Keith Packard [Wed, 18 Dec 2013 01:37:39 +0000 (17:37 -0800)]
Add altosui image and attempt to add launch photo to title

10 years agofurther documentation tweaks
Bdale Garbee [Tue, 17 Dec 2013 21:53:59 +0000 (14:53 -0700)]
further documentation tweaks

10 years agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 17 Dec 2013 21:09:30 +0000 (14:09 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

Conflicts:
doc/altusmetrum.xsl

10 years agocapture my changes so far
Bdale Garbee [Tue, 17 Dec 2013 21:08:12 +0000 (14:08 -0700)]
capture my changes so far

10 years agodoc: Add product pictures to manual
Keith Packard [Tue, 17 Dec 2013 19:38:46 +0000 (11:38 -0800)]
doc: Add product pictures to manual

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoKeep tables together on a page
Keith Packard [Tue, 17 Dec 2013 19:19:54 +0000 (11:19 -0800)]
Keep tables together on a page

10 years agodoc: Convert several more itemizedlists to variablelists
Keith Packard [Tue, 17 Dec 2013 18:33:29 +0000 (10:33 -0800)]
doc: Convert several more itemizedlists to variablelists

When defining a term, use variablelist to pull the term out to the left.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoClean up reflashing section, include section on self-flash recovery
Keith Packard [Tue, 17 Dec 2013 05:21:24 +0000 (21:21 -0800)]
Clean up reflashing section, include section on self-flash recovery

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoao-tools: Use st-flash for STM flashing instead of openocd
Keith Packard [Sat, 14 Dec 2013 19:47:31 +0000 (11:47 -0800)]
ao-tools: Use st-flash for STM flashing instead of openocd

st-flash, from the stlink tools, appears more reliable when flashing
STM CPUs.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoadd serial number to ao-usbload call, pass SERIAL to cal-freq
Bdale Garbee [Sat, 14 Dec 2013 19:16:03 +0000 (12:16 -0700)]
add serial number to ao-usbload call, pass SERIAL to cal-freq

10 years agotemporarily force stlink location in debian/rules to allow complete build
Bdale Garbee [Sat, 14 Dec 2013 01:37:29 +0000 (18:37 -0700)]
temporarily force stlink location in debian/rules to allow complete build

10 years agojava: Missed libaltos java compile flags from previous patch
Keith Packard [Tue, 10 Dec 2013 08:54:32 +0000 (00:54 -0800)]
java: Missed libaltos java compile flags from previous patch

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agojava: Add -target 1.6 to all java compiles
Keith Packard [Tue, 10 Dec 2013 08:51:01 +0000 (00:51 -0800)]
java: Add -target 1.6 to all java compiles

This makes sure the results can run with the old JVM

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Remove ARM .ihx files on 'make clean'
Keith Packard [Tue, 10 Dec 2013 08:39:52 +0000 (00:39 -0800)]
altos: Remove ARM .ihx files on 'make clean'

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoSet version to 1.3 in preparation for release
Keith Packard [Tue, 10 Dec 2013 08:03:20 +0000 (00:03 -0800)]
Set version to 1.3 in preparation for release

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agodoc: More altusmetrum.xsl updates for 1.3
Keith Packard [Tue, 10 Dec 2013 08:00:31 +0000 (00:00 -0800)]
doc: More altusmetrum.xsl updates for 1.3

Spell checking even

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agodebian: .ihx and .map files are left in subdirs now
Keith Packard [Tue, 10 Dec 2013 07:16:13 +0000 (23:16 -0800)]
debian: .ihx and .map files are left in subdirs now

Install them from the right place

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Ship TeleMega-v1.0 firmware
Keith Packard [Tue, 10 Dec 2013 07:14:55 +0000 (23:14 -0800)]
altosui: Ship TeleMega-v1.0 firmware

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoao-bringup: Add turnon_telemega script
Keith Packard [Tue, 10 Dec 2013 07:12:40 +0000 (23:12 -0800)]
ao-bringup: Add turnon_telemega script

And a few helper programs

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Rename telemega-v0.3 to telemega-v1.0
Keith Packard [Tue, 10 Dec 2013 00:06:22 +0000 (16:06 -0800)]
altos: Rename telemega-v0.3 to telemega-v1.0

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos: Oops. Was only filling out part of the TeleMetrum ADC record
Keith Packard [Mon, 9 Dec 2013 05:08:36 +0000 (21:08 -0800)]
altos: Oops. Was only filling out part of the TeleMetrum ADC record

Because it's missing a return, we'd end up filling out one element of
the ADC record per interrupt, and rotating through which one was set,
hitting all of the even offsets within the struct. Yikes!

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: When flashing to TeleDongle or TeleBT, match any .ihx file
Keith Packard [Mon, 9 Dec 2013 05:07:17 +0000 (21:07 -0800)]
altosui: When flashing to TeleDongle or TeleBT, match any .ihx file

Let the user pick any .ihx file when using a device which can only be
used as a pair programmer. Note that 'telemetrum' can be either, and
we'll assume that it's a self-programmed device (v2) for now.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosui: Match directories in hex file matcher
Keith Packard [Mon, 9 Dec 2013 04:34:11 +0000 (20:34 -0800)]
altosui: Match directories in hex file matcher

This makes it possible to navigate around the file system

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Don't require radio_cal or usb_descriptors in AltosRomconfig
Keith Packard [Mon, 9 Dec 2013 04:33:22 +0000 (20:33 -0800)]
altoslib: Don't require radio_cal or usb_descriptors in AltosRomconfig

Not all products will have these values, so allow them to be missing

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoAdd new tools to .gitignore
Keith Packard [Mon, 9 Dec 2013 04:11:46 +0000 (20:11 -0800)]
Add new tools to .gitignore

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Add self-flashing code
Keith Packard [Mon, 9 Dec 2013 04:09:10 +0000 (20:09 -0800)]
altoslib: Add self-flashing code

This adds the ability to use the AltOS flash-loader on both STM and
NXP processors.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Add AltosNoSymbol exception
Keith Packard [Mon, 9 Dec 2013 04:07:23 +0000 (20:07 -0800)]
altoslib: Add AltosNoSymbol exception

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Use symbols in AltosRomconfig instead of fixed offsets
Keith Packard [Mon, 9 Dec 2013 04:04:43 +0000 (20:04 -0800)]
altoslib: Use symbols in AltosRomconfig instead of fixed offsets

The new Hexfile symbol code automatically adds the needed romconfig
symbols for cc1111 products, and ARM-based products have symbols in
the .ihx files. This means that we can rely on using symbols when
finding config values in memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltosuilib: Don't match product_altusmetrum for product_basestation or product_altimeter
Keith Packard [Mon, 9 Dec 2013 03:59:37 +0000 (19:59 -0800)]
altosuilib: Don't match product_altusmetrum for product_basestation or product_altimeter

It's been years since we've shipped boards configured with
product_altusmetrum, but now we've repurposed that code for the flash
loader. When matching an explicit product, go ahead and also match
altusmetrum so that the flash loader will fit, but when matching
basestation or altimeter, don't as that will avoid popping up the
flight monitor UI at startup when a board is running the boot loader.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Publish mapping from product name back to USB id
Keith Packard [Mon, 9 Dec 2013 03:48:27 +0000 (19:48 -0800)]
altoslib: Publish mapping from product name back to USB id

This lets us choose which device to flash based on the filename

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Create AltosProgrammer class
Keith Packard [Mon, 9 Dec 2013 03:47:44 +0000 (19:47 -0800)]
altoslib: Create AltosProgrammer class

This provides an abstract interface to flashing boards, for
dongle-based and self-programming boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Add symbols to .ihx files
Keith Packard [Mon, 9 Dec 2013 03:46:30 +0000 (19:46 -0800)]
altoslib: Add symbols to .ihx files

Create a new 0xfe record type to hold the symbols, and append them
after the EOF record so that other tools might continue to work.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: Support binary reading/writing in AltosLink
Keith Packard [Mon, 9 Dec 2013 03:43:13 +0000 (19:43 -0800)]
altoslib: Support binary reading/writing in AltosLink

Binary reads require an explicit length, and do not work while
telemetry is running.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltos/stm: arm-none-eabi-binutils now puts 'main' into .text.startup
Keith Packard [Mon, 9 Dec 2013 03:05:01 +0000 (19:05 -0800)]
altos/stm: arm-none-eabi-binutils now puts 'main' into .text.startup

Change name of .text.ram to .ramtext, then load .text* into flash and
.ramtext into ram. This ensures that 'main' and anything else in a
random .text.* segment will get loaded into flash as appropriate.

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoao-tools: build ao-usbload by default
Keith Packard [Mon, 9 Dec 2013 03:04:11 +0000 (19:04 -0800)]
ao-tools: build ao-usbload by default

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoaltoslib: AltosEepromMonitor had false import of altosuilib
Keith Packard [Sun, 8 Dec 2013 19:41:09 +0000 (11:41 -0800)]
altoslib: AltosEepromMonitor had false import of altosuilib

Not needed, and breaks the build

Signed-off-by: Keith Packard <keithp@keithp.com>