comparison 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
comparison
equal deleted inserted replaced
19:d078651f5353 20:35cf31794a42
36 ${OBJCOPY} -O binary ${.ALLSRC} ${.TARGET} 36 ${OBJCOPY} -O binary ${.ALLSRC} ${.TARGET}
37 37
38 clean: 38 clean:
39 ${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp 39 ${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp
40 40
41 prog: 41 debug:
42 /Users/darius/projects/stm32loader/stm32loader.py -p /dev/tty.usbserial -b 115200 -e -w -v ${PROG}.bin 42 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" ${PROG}.elf
43
44 load:
45 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf
43 46
44 ######################### 47 #########################
45 #;;; Local Variables: *** 48 #;;; Local Variables: ***
46 #;;; mode:makefile *** 49 #;;; mode:makefile ***
47 #;;; End: *** 50 #;;; End: ***