diff 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
line wrap: on
line diff
--- a/BSDmakefile.arm	Tue Apr 09 00:28:29 2013 +0930
+++ b/BSDmakefile.arm	Tue Apr 09 17:09:19 2013 +0930
@@ -41,10 +41,10 @@
 		${RM} ${PROG}.hex ${PROG}.out ${PROG}.elf ${PROG}.bin ${PROG}.map ${OBJS} ${OBJS:S/.o/.lst/} ${PROG}.dmp .depend
 
 debug:
-		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" ${PROG}.elf
+		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "mon jtag_scan" -ex "attach 1" ${PROG}.elf
 
 load:
-		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf
+		${GDB} -ex "target extended-remote ${DBGPORT}" -ex "mon jtag_scan" -ex "attach 1" -ex "load" -ex "detach" -ex "quit" ${PROG}.elf
 
 depend: .depend