comparison BSDmakefile.arm @ 63:7e5916574d5e

Scan before attaching in case the BMP has been power cycled.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 09 Apr 2013 17:09:19 +0930
parents 7f8e5780024b
children 3f1c101f89bc
comparison
equal deleted inserted replaced
62:bb52e6dad784 63:7e5916574d5e
39 39
40 clean: 40 clean:
41 ${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp .depend 41 ${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp .depend
42 42
43 debug: 43 debug:
44 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" ${PROG}.elf 44 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "mon jtag_scan" -ex "attach 1" ${PROG}.elf
45 45
46 load: 46 load:
47 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf 47 ${GDB} -ex "target extended-remote ${DBGPORT}" -ex "mon jtag_scan" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf
48 48
49 depend: .depend 49 depend: .depend
50 50
51 .depend: ${SRCS} 51 .depend: ${SRCS}
52 CC='${CC}' ${MKDEPCMD} ${CFLAGS} ${.ALLSRC} 52 CC='${CC}' ${MKDEPCMD} ${CFLAGS} ${.ALLSRC}