summaryrefslogtreecommitdiffstats
path: root/app/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'app/Makefile')
-rw-r--r--app/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/app/Makefile b/app/Makefile
index b9606ca..afb5bc1 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -18,14 +18,14 @@
##
CPROTO=cproto
-PROG=crypto
+PROG=candlestick
V=1
default: ${PROG}.elf
-CSRCS=dfu.c main.c usb.c led.c ticker.c i2c.c lcd.c adc.c state.c key.c keyboard.c crypto.c map.c
+CSRCS=dfu.c main.c usb.c led.c ticker.c i2c.c lcd.c cdc.c
BINARY = ${PROG}
@@ -39,7 +39,14 @@ include ../Makefile.include
INCLUDES += -I../include
dfu:${PROG}.dfu
- dfu-util -R -a 0 -d 1d6b:1932 -s 0x08002000:leave -D $<
+ dfu-util -R -a 0 -d 1d6b:cad5 -s 0x08002000:leave -D $<
+
+server:
+ $(Q)$(OOCD) -f $(OOCD_INTERFACE) -f $(OOCD_BOARD)
+
+debug: ${PROG}.elf
+ echo "target remote localhost:3333" > debug.start
+ ${GDB} ${PROG}.elf -x debug.start
program: ${PROG}.elf
echo halt | nc -t localhost 4444
@@ -51,3 +58,4 @@ protos:
${CPROTO} $(INCLUDES) $(DEFINES) -e -v ${CSRCS} > prototypes.h.tmp
mv -f prototypes.h.tmp prototypes.h
+EXTRA_CLEAN=debug.start