diff options
author | ajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123> | 2009-12-19 18:23:31 +0000 |
---|---|---|
committer | ajmeyer@mit.edu <ajmeyer@mit.edu@749a229e-a60e-11de-b98f-4500b42dc123> | 2009-12-19 18:23:31 +0000 |
commit | 3bb04834ffd3f90dc9015997ea11a56d9d150099 (patch) | |
tree | ace229d4399c535a0fc874d1ad22efd7bfbf35de /Makefile | |
parent | 6a0091418a8cdad33f7cb9b2a576e91c6960e07a (diff) | |
download | librambutan-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-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |