summaryrefslogtreecommitdiff
path: root/ao-tools/ao-stmload
Commit message (Collapse)AuthorAge
* 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>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Clean up ao-stmload and ao-usbload options. Add --rawKeith Packard2013-12-08
| | | | | | | | ao-stmload only uses stlink, ao-usbload only uses self-flashing, so clear up the options in the two programs. The new --raw option skips the serial and radio cal rewriting when flashing the boot loader. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Allow building without stlink and readlineKeith Packard2013-12-08
| | | | | | | | This adds --without-stlink and --without-readline options to configure to disable these features, and adjusts the build process and code to handle that. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-flash-stm and ao-flash-lpc scriptsKeith Packard2013-12-07
| | | | | | These use openocd to download boot loaders to the arm-based products Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Split out USB loader to ao-usbloadKeith Packard2013-11-28
| | | | | | Leave ao-stmload using just stlinkv2 Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Split out altos symbol editing from ao-stmloadKeith Packard2013-11-28
| | | | | | to be shared with ao-usbload Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: move 16/32-bit readers from ao-stmload to libKeith Packard2013-11-28
|
* ao-tools: Move ao-selfload into libraryKeith Packard2013-11-28
| | | | | | This needs to be shared between ao-stmload and ao-usbload Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-elftohex and .ihx symbol supportKeith Packard2013-11-28
| | | | | | | ao-elftohex converts an elf file into a hex file so that we can load it with java. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Create general elf and hex library routinesKeith Packard2013-11-27
| | | | | | | Pulls the elf stuff out of ao-stmload, change the hex stuff into ao_ routines. 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>
* 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>
* ao-tools/ao-stmload: Remove IRC dregs in source codeKeith Packard2013-05-07
| | | | | | oops. 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/ao-stmload: Be smarter about ELF parsing. Retry open on failure.Keith Packard2013-03-31
| | | | | | | | | | | | | | | | | 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 a bunch of .gitignore entriesKeith Packard2012-08-30
| | | | | | Clean up the git status output Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-stmload: Always round up load amount to 4 byte boundaryKeith Packard2012-08-28
| | | | | | The flashing code doesn't deal with partial writes. Signed-off-by: Keith Packard <keithp@keithp.com>
* Don't build ao-stmload if stlink is not available.Mike Beattie2012-07-31
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* tools: Use pkgconfig to find stlink for ao-stmloadKeith Packard2012-07-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ao-stmload toolKeith Packard2012-07-17
This loads an ELF image through the STlink programming interface using the stlink utility library Signed-off-by: Keith Packard <keithp@keithp.com>