diff BSDmakefile.arm @ 20:35cf31794a42

Fix debug & load targets for BMP.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 14 Nov 2012 12:47:10 +1030
parents b62eaa3131b1
children 7f8e5780024b
line wrap: on
line diff
--- a/BSDmakefile.arm	Wed Nov 14 12:46:48 2012 +1030
+++ b/BSDmakefile.arm	Wed Nov 14 12:47:10 2012 +1030
@@ -38,8 +38,11 @@
 clean:
 		${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp
 
-prog:
-		/Users/darius/projects/stm32loader/stm32loader.py -p /dev/tty.usbserial -b 115200 -e -w -v ${PROG}.bin
+debug:
+		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" ${PROG}.elf
+
+load:
+		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf
 
 #########################
 #;;; Local Variables: ***