X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.bsl;h=75376fc61a3757d53ea6fa455f750d772232f1d4;hp=4267275f41f0545904843861c58535b60d54cd9f;hb=0e295f507e702decef0c8362d216c3fd2b61e32a;hpb=dd49731422f391ad8cfbc1910b9b5285f36f43bc diff --git a/client/goodfet.bsl b/client/goodfet.bsl index 4267275..75376fc 100755 --- a/client/goodfet.bsl +++ b/client/goodfet.bsl @@ -14,7 +14,7 @@ # JTAG programmer. import sys, time, string, cStringIO, struct -sys.path.append("/usr/lib/tinyos") +#sys.path.append("/usr/lib/tinyos") #We no longer require TinyOS. import serial, os, glob #forked from TinyOS Telos version. @@ -1370,6 +1370,7 @@ General options: --swap-reset-test, and --telos-latch --telosb Implies options --swap-reset-test, --telos-i2c, --no-BSL-download, and --speed=38400 + --apimote Implies --swap-reset-test --goodfet10 --goodfet20 --goodfet30 @@ -1483,6 +1484,8 @@ def main(itest=1): if(os.environ.get("board")=='z1' or os.environ.get("board")=='zolertiaz1'): bsl.z1 = 1 + if(os.environ.get("board")=='apimote'): + bsl.swapRSTTEST = 1; if comPort is None and os.environ.get("GOODFET")!=None: @@ -1680,6 +1683,8 @@ def main(itest=1): elif o in ("--goodfet", ): bsl.invertRST = 1 bsl.invertTEST = 1 + elif o in ("--apimote",): + bsl.swapRSTTEST = 1; elif o in ("--nhbadge", "--nhbadgeb" ): bsl.invertRST = 1 bsl.invertTEST = 1