diff options
author | root <root@lamia.panaceas.james.local> | 2016-08-20 14:04:59 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2016-08-20 14:04:59 +0100 |
commit | b063a2da3024a2e3175e1ba9b0a87cb6c7470765 (patch) | |
tree | f5c90c4119b091876a3f53acf4e581316eec4926 /app/Makefile | |
parent | bc832d6d342922a828aebb997d1d9c6626898487 (diff) | |
download | candlestick-b063a2da3024a2e3175e1ba9b0a87cb6c7470765.tar.gz candlestick-b063a2da3024a2e3175e1ba9b0a87cb6c7470765.tar.bz2 candlestick-b063a2da3024a2e3175e1ba9b0a87cb6c7470765.zip |
candlestick
Diffstat (limited to 'app/Makefile')
-rw-r--r-- | app/Makefile | 14 |
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 |