aboutsummaryrefslogtreecommitdiffstats
path: root/support/openocd
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-06-24 11:16:26 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-06-25 21:23:04 -0400
commit2c043efb66416f3d5cd85f0939054766082354de (patch)
treed5b79a987b9e6e029a0b3b0355bd925f98960940 /support/openocd
parent70a18f96b6d55d23ce58ab40ffb61f172c8f6c73 (diff)
downloadlibrambutan-2c043efb66416f3d5cd85f0939054766082354de.tar.gz
librambutan-2c043efb66416f3d5cd85f0939054766082354de.zip
make: Modularize makefiles, add dependency tracking, build-type tracking
Major build system rewrite. New and exciting: 1. Proper dependency tracking. All source files including header files should be properly tracked and recompiled as necessary when they are changed. 2. Build-type tracking. If the target changes from 'ram' to 'flash,' for example, the build system will force a rebuild rather than incorrectly link modules to a different address. 3. New targets: The old 'ram,' 'flash,' and 'jtag' targets have been replaced with the environment variable MAPLE_TARGET, which controls the link address. Users can either export it to their environment, or pass MAPLE_TARGET on the command-line. Once this is set, sketches can be compiled with 'make sketch,' or simply 'make.' Note: the default is MAPLE_TARGET='flash.' The target 'install' now automagically uploads the sketch to the board using the appropriate method. The 'run' target has been renamed to 'debug.' It starts an openocd gdb server. 4. Odds and ends: -Verbose and 'quiet' modes. Set V=1 for verbose compilation, the default is quiet. -Object file sizes and disassembly information is generated and placed in build/$(BOARD).sizes and build/$(BOARD).disas, respectively. -Parallel make with -j should speed things up if you have multiple cores.
Diffstat (limited to 'support/openocd')
-rw-r--r--support/openocd/flash.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/openocd/flash.cfg b/support/openocd/flash.cfg
index 6cffa80..eceac32 100644
--- a/support/openocd/flash.cfg
+++ b/support/openocd/flash.cfg
@@ -72,9 +72,9 @@ proc flash_chip {} {
echo "Erasing 128KB..."
flash erase_address 0x08000000 0x20000
echo "Flashing image..."
- flash write_bank 0 build/main.bin 0
+ flash write_bank 0 build/maple.bin 0
echo "Verifying image..."
- verify_image build/main.bin 0x08000000 bin
+ verify_image build/maple.bin 0x08000000 bin
echo "Checksum verified, resetting chip"
reset run
echo "Daemon shutdown"