summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altos: Validate boot chain start addressKeith Packard2013-03-23
| | | | | | | | | | If the first block of boot memory has been smashed, and the start address is bogus, don't bother trying to jump to the application. This makes the system more resiliant to flash failures, presuming the loader erases the first block, programs the other blocks and then finally comes back to program the first block. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Mark .boot section as (NOLOAD)Keith Packard2013-03-23
| | | | | | | | | For some reason, the silly linker marks things in section .boot as data rather than bss, so they'd end up initialized by default. Force them to be NOLOAD so they preserve values across reboot so that boot chaining works properly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix up stm-flash output file name. Use discovery LED pinsKeith Packard2013-03-23
| | | | | | | | | | Include the AltOS version in the file name, just like any other AltOS program. Switch the LEDs to the discovery board as we're using that. Eventually, we'll stop using LEDs entirely. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-stmload: Be smarter about ELF parsing. Retry open on failure.Keith Packard2013-03-23
| | | | | | | | | | | | | | | | | Figuring out what goes where is tricky; turns out we want to pull all of the sections that map inside any program area that is supposed to be loaded from the file. So, we walk the program headers, then walk all of the section headers looking for those that suck data from the same portion of the file. Compute where in ROM each relevant section goes and build a full ROM image in memory using that. This patch also adds code to close and re-open the device if the first open failed to do what we want. Much nicer to have the computer figure out when the open succeeded rather than having people re-run the app. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add actual flashing functions to stm-flash appKeith Packard2013-03-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up boot loader supportKeith Packard2013-03-11
| | | | | | | Split out code into separate files. Add support for getting back to boot loader from application. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add program flash functionKeith Packard2013-03-11
| | | | | | | | And get it loaded to RAM so it can execute correctly. Nothing calls it yet... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix up 'help' command for 8051Keith Packard2013-03-10
| | | | | | | | The help command was rewritten to avoid using printf, but the rewrite used 'const' instead of the required '__code' to point at constant strings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make stm-flash capable of switching to applicationKeith Packard2013-03-10
| | | | | | | This shrinks the base OS load down a bit as well so that stm-flash fits comfortably in the first 8kB of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add STM self-flashing loaderKeith Packard2013-03-10
| | | | | | | This allows the real application to get loaded at 0x2000 and jumps to that at startup time if the boot pin is set appropriately Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'mjb/altosdroid'Keith Packard2013-03-10
|\
| * altosdroid: Add map polyline between pad and rocketMike Beattie2013-03-10
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Add rocket and pad map markersMike Beattie2013-03-10
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: programmatically create map fragmentMike Beattie2013-03-10
| | | | | | | | | | | | | | | | * Allows reliable fetching of a GoogleMap handle. * Set map options, initial location (NCR North for now, temporarily) * Add some info fields below map, and update them accordingly Signed-off-by: Mike Beattie <mike@ethernal.org>
| * Merge branch 'master' into altosdroidMike Beattie2013-03-10
| |\
| | * altosdroid: Add SDK checks to configure.acMike Beattie2013-03-10
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| | * altosdroid: adjust clean targets to get rid of automake warningMike Beattie2013-03-10
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| | * ao-tools: Add ao-edit-telem to .gitignoreMike Beattie2013-03-10
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * | Merge branch 'master' into altosdroidMike Beattie2013-03-10
| |\|
| * | altosdroid: fix side-to-side scrolling in map tabMike Beattie2013-03-08
| | | | | | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | | altos: re-enable optimization for stm-demo. remove unused bitsKeith Packard2013-03-10
| |/ |/| | | | | | | | | This makes stm-demo run on the discovery board again. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools: Add ao-edit-telemKeith Packard2013-03-09
| | | | | | | | | | | | | | | | This lets you edit a telemetry file. The only current editing available is to change the pad location, allowing a flight to be replayed anywhere in the world. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/lib: Add cc_telemetry_unparseKeith Packard2013-03-09
| | | | | | | | | | | | This takes a telemetry structure and generates a string version Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui: Add N/S and E/W to info table lat/lon valuesKeith Packard2013-03-09
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge remote-tracking branch 'mjb/altosdroid'Keith Packard2013-03-07
|\|
| * altosdroid: Auto tab changingMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: implement Age field updatingMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: implement UI updating on tabsMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: implement tabs interfaceMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Import initial versions of XML and Java for Tab contentMike Beattie2013-03-07
| | | | | | | | | | | | | | | | | | | | * Includes TabsAdapter class borrowed from Support Library sample code * New "GoNoGoLights" class for dealing with the red/green/gray LEDs * extra required strings in strings.xml * Couple of support functions in AltosDroid.java * rudimentary Maps tab - does nothing at present. Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: whitespace cleanupMike Beattie2013-03-07
| | | | | | | | | | | | DAMN my OCD. Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: make AltosDroid.pos() staticMike Beattie2013-03-07
| | | | | | | | | | | | * Will be used from tabs that display lat/lon Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: convert spaces to tabs in strings.xmlMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: adjust release Makefile targetMike Beattie2013-03-07
| | | | | | | | | | | | | | | | * Rename target * Add dependency on unsigned release APK * use $(ZIPALIGN) variable Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Symlink red/green/gray LEDs via build systemMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Adjust build system for GMaps & Tabs supportMike Beattie2013-03-07
| | | | | | | | | | | | | | | | | | * Use SupportV4 library for Tab support * Use Google Services Lib for Google Maps * revert to a standard Android target, not Google API's * Add permissions required for Google Maps to manifest, and API key Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: adjust Makefile rulesMike Beattie2013-03-07
| | | | | | | | | | | | separate altoslib linking and, making of external lib directory. Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: use a glob for source filesMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Only update BuildInfo.java when other source files changeMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: Fix up some formatting in manifestMike Beattie2013-03-07
| | | | | | | | | | | | (And add flag to allow settings backup by google services) Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: minor whitespace cleanupMike Beattie2013-03-07
| | | | | | | | | | | | (damn my OCD!) Signed-off-by: Mike Beattie <mike@ethernal.org>
| * altosdroid: update copyrights/licensingMike Beattie2013-03-07
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | Merge remote-tracking branch 'mjb/master'Keith Packard2013-03-06
|\|
| * altosdroid: excise old code/xmlMike Beattie2013-02-15
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * all: clean up .gitignore files and Makefile clean targetsMike Beattie2013-02-15
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* | altoslib: Invalidate GPS new data bit when updating stateKeith Packard2013-03-04
| | | | | | | | | | | | Somehow this line got lost when the GPS ground altitude fix was made. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools: Add ao-dumpflash programKeith Packard2013-03-03
| | | | | | | | | | | | | | This program dumps the entire flash contents of an AltOS device to allow for external analysis. Signed-off-by: Keith Packard <keithp@keithp.com>
* | libaltos: Open FTDI serial devices twice on Windows.Keith Packard2013-03-02
| | | | | | | | | | | | | | | | | | | | Looks like the Windows FTDI driver has 'issues' and opening it only once doesn't work correctly. Just close and re-open the device and it seems to be perfectly happy. Who knows? Signed-off-by: Keith Packard <keithp@keithp.com>
* | doc: Add version 1.2 release notesKeith Packard2013-03-01
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | doc: Document how to get TeleMini to 'emergency recovery' modeKeith Packard2013-03-01
| | | | | | | | | | | | | | | | TeleMini needs emergency recovery mode in case you forget the radio parameters and need to get things back to a known state. Add documentation to describe what this does and how to get it enabled. Signed-off-by: Keith Packard <keithp@keithp.com>