aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123>2009-12-19 18:23:31 +0000
committerajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123>2009-12-19 18:23:31 +0000
commit3bb04834ffd3f90dc9015997ea11a56d9d150099 (patch)
treeace229d4399c535a0fc874d1ad22efd7bfbf35de /Makefile
parent6a0091418a8cdad33f7cb9b2a576e91c6960e07a (diff)
downloadlibrambutan-3bb04834ffd3f90dc9015997ea11a56d9d150099.tar.gz
librambutan-3bb04834ffd3f90dc9015997ea11a56d9d150099.zip
added demo code on main.cpp to build a simple two way channel over the virtual serial port. To use this, run ln -s /dev/ttyACM0 /dev/ttyS9 then open up Maple IDE and select ttyS9 as the serial port. you should be able to see the count of the number of bytes in as well as the blink message
git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@78 749a229e-a60e-11de-b98f-4500b42dc123
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f84d6c8..2dfcd45 100644
--- a/Makefile
+++ b/Makefile
@@ -160,6 +160,11 @@ $(BUILD_PATH)/main.bin: $(BUILD_PATH)/$(PROJECT).out
install: $(BUILD_PATH)/main.bin
openocd -f stm32conf/flash.cfg
+program:
+ dfu-util -a0 -d 0110:1001 -D build/main.bin -R
+programFlash:
+ dfu-util -a1 -d 0110:1001 -D build/main.bin -R
+
run: $(BUILD_PATH)/main.bin
openocd -f stm32conf/run.cfg