From 3bb04834ffd3f90dc9015997ea11a56d9d150099 Mon Sep 17 00:00:00 2001 From: "ajmeyer@mit.edu" Date: Sat, 19 Dec 2009 18:23:31 +0000 Subject: 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 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3