changeset 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 bb52e6dad784
children ff29436c0224
files BSDmakefile.arm
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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