summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altoslib: Use sequence numbers to track GPS updates to AltosRecordKeith Packard2013-05-14
| | | | | | | | | | | State objects now record what GPS sequence ID they have to know when the GPS data has been updated. Record objects bump the GPS sequence each time new GPS data is recorded. This way, record objects aren't modified as they're iterated over to generate the list of state objects which makes it possible to iterate multiple times and get the same resulting set of states. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: ao_gps_test_ublox uses ao_gps_blox.hKeith Packard2013-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Struct used for u-blox testing had lat/lon swappedKeith Packard2013-05-13
| | | | | | | The structs in ao_gps_ublox.h are used only by the test framework, but it's useful to have that look right anyways. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch TeleMega v0.3 to u-bloxKeith Packard2013-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide a define for the number of sat infos in a telem packetKeith Packard2013-05-13
| | | | | | 12 fit, but it's best to use a symbolic constant Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add U-Blox GPS driverKeith Packard2013-05-13
| | | | | | Uses binary mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't bother fixing telelco-v0.1, just disable itKeith Packard2013-05-13
| | | | | | | Lots of stuff to do to make this old project build; just disable it instead of fixing Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Mistake in the MegaDongle listing -- was set to TeleMegaKeith Packard2013-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Correct hexfile address rangesKeith Packard2013-05-13
| | | | | | | | Stop trying to use sentinal values for addresses and just keep a boolean tracking whether they've been initialized. Avoids precision errors in the variables. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Wait for valid callsign/flight when graphingKeith Packard2013-05-10
| | | | | | | Wait for the data record to indicate that the flight value is valid before setting the graph callsign/flight/serial data. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master-fixes' into stm-flash-fixesKeith Packard2013-05-09
|\
| * micropeak: Use new 'last logdir' preference for MicroPeak save/load dialogsKeith Packard2013-05-09
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * Information from configure about android build was misprintedKeith Packard2013-05-09
| | | | | | | | | | | | A typo in the script caused it to print either 'yes' or '' Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: Add non-persistent 'last logdir' preferenceKeith Packard2013-05-09
| | | | | | | | | | | | | | This is used to record the last directory for reading or writing log files so that the UI can pop back to the same place next time. Signed-off-by: Keith Packard <keithp@keithp.com>
| * Add altosdroid notebook entry for imperial unitsKeith Packard2013-05-09
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Wait after configuring boot pin before testing itKeith Packard2013-05-07
| | | | | | | | | | | | | | | | Clearly the pin isn't quite ready just after it's been configured, so hang around for a while (100 nops) to let things setting down before testing the value of the pin. Makes booting a lot more reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Create per-product flash loadersKeith Packard2013-05-07
| | | | | | | | | | | | | | Split the flash loader prototype into pieces so that each product can build a custom flash loader with very little code. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add ao_boot_chain to telemega v0.3Keith Packard2013-05-07
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/ao-stmload: Add --verbose flagKeith Packard2013-05-07
| | | | | | | | | | | | This dumps out the serial communication so you can see where things go wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove stdio from stm-flashKeith Packard2013-05-07
| | | | | | | | | | | | This saves enough memory to fit in under 4kB Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Get rodata into flash, make sure sections are alignedKeith Packard2013-05-07
| | | | | | | | | | | | | | | | .rodata* needs to be in flash; otherwise strings get left in ram. Failing to align sections makes the initialized data get dumped into the wrong place in memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Make stm-bringup build againKeith Packard2013-05-07
| | | | | | | | | | | | stm requires AO_BOOT_LOADER_BASE now Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Run self loader when application sets boot addr to 0Keith Packard2013-05-07
| | | | | | | | | | | | | | This causes the flash loader startup code to fall into the loader when the application sets the boot address to zero. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Allow STM usb driver to be used without stdioKeith Packard2013-05-07
| | | | | | | | | | | | | | This lets the self flashing loader be linked without any of the stdio code, which saves a bunch of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASEKeith Packard2013-05-07
| | | | | | | | | | | | Allows that value to change Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/ao-stmload: application base moved to 0x08001000Keith Packard2013-05-07
| | | | | | | | | | | | And, use a symbolic name so it can be easily moved in the future Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools: reboot to loader now uses 'X' instead of 'L'Keith Packard2013-05-07
| | | | | | | | | | | | | | | | 'L' is used by lots of other commands; switch to 'X' which is free. Sigh. Someday we'll have words for commands instead of just letters Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Use flash loader on all STM productsKeith Packard2013-05-07
| | | | | | | | | | | | Includes the boot chain stuff Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Provide another 4kB of flash space for appsKeith Packard2013-05-07
| | | | | | | | | | | | With the flash loader now < 4kB, we can use the spare 4kB for applications Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Shrink stm flash loader to < 4kBKeith Packard2013-05-07
| | | | | | | | | | | | Saves 4kB of flash space for applications. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Allow core timer to be excluded from buildKeith Packard2013-05-07
| | | | | | | | | | | | | | This removes all of the support for the base 100Hz timer from the system, saving space when not needed Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Don't define task macros when not taskingKeith Packard2013-05-07
| | | | | | | | | | | | The necessary data structures aren't defined in this case. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Eliminate stdio looping when system has a single stdio sourceKeith Packard2013-05-07
| | | | | | | | | | | | No need to loop if there's only one Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Move ao_notask to coreKeith Packard2013-05-07
| | | | | | | | | | | | | | The STM flash loader wants to be taskless too, share this very simple implementation of sleep/wakeup. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/ao-stmload: Remove IRC dregs in source codeKeith Packard2013-05-07
| | | | | | | | | | | | oops. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui/altoslib: Move more flashing code from altosui to altoslibKeith Packard2013-05-07
| | | | | | | | | | | | | | Required a bit of refactoring to eliminate swing types from the flashing code, but nothing major. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui & altoslib: Move a pile of debug/programming bits to altoslibKeith Packard2013-05-07
| | | | | | | | | | | | Prepare to create external Java utilities to flash devices Signed-off-by: Keith Packard <keithp@keithp.com>
* | altosui: Support 32-bit ihx filesKeith Packard2013-05-07
| | | | | | | | | | | | This just borrows the same 32-bit ihx parsing changes from ao-tools. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/ao-stmload: Fix ELF, add IHX, add self-flashingKeith Packard2013-05-07
| | | | | | | | | | | | | | This splits loading into ELF and IHX paths, and splits flashing into stlink and self-flashing paths. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-tools/lib: Add loading support for 32-bit ihx filesKeith Packard2013-05-07
| | | | | | | | | | | | | | | | | | These place the upper 16 bits of the address in a special record. That requires handling records in file order, so don't sort them in address order anymore, instead find the bounds of the loaded data by scanning them all. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Add comments to the .ld files explaining how the romconfig stuff ↵Keith Packard2013-05-07
| | | | | | | | | | | | | | | | | | | | | | works Would be nice to be able to explicitly define addresses for the romconfig variables, but I can't figure out how to make that work. Instead, just explicitly load the files in teh right order to make things land in the right places. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Add .elf to .ihx ruleKeith Packard2013-05-07
| | | | | | | | | | | | Uses objcopy -O ihex to extract the initialized bits from an elf file Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Switch ao_stm_flash to read/write binary blocksKeith Packard2013-05-07
| | | | | | | | | | | | | | Change from development testing code to something that actually reads and writes data from the USB link. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Create ihx version of stm-demoKeith Packard2013-05-07
| | | | | | | | | | | | Both ao-stmload and the eventual java loader will support ihx files. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add erase command to stm-flash app. Validate addresses.Keith Packard2013-05-07
| | | | | | | | | | | | | | | | This also leaves the code writing fixed values and printing read data in ascii instead of binary. Useful for debugging, will want changing for the product. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Fix STM flash programmingKeith Packard2013-05-07
| | | | | | | | | | | | | | | | | | | | | | Wait for flash to go non-busy after writing or erasing a page and before jumping back out of the RAM code. Export a separate 'erase' operation for testing. Re-lock flash after every operation. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Validate boot chain start addressKeith Packard2013-05-07
| | | | | | | | | | | | | | | | | | | | 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-05-07
| | | | | | | | | | | | | | | | | | 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-05-07
| | | | | | | | | | | | | | | | | | | | 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>
* | altos: Add actual flashing functions to stm-flash appKeith Packard2013-05-07
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>