Skip to content

Commit c0213c9

Browse files
committedApr 15, 2015
artiq_flash.sh: add pipistrello
1 parent d6f47b3 commit c0213c9

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed
 

Diff for: ‎artiq/frontend/artiq_flash.sh

+17-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ do
2424
elif [ "$OPTARG" == "ppro" ]
2525
then
2626
BOARD=ppro
27+
elif [ "$OPTARG" == "pipistrello" ]
28+
then
29+
BOARD=pipistrello
2730
else
28-
echo "Supported targets (-t option) are: kc705 and ppro"
31+
echo "Supported targets (-t option) are:"
32+
echo "kc705, ppro, or pipistrello"
2933
exit 1
3034
fi
3135
;;
@@ -43,12 +47,12 @@ do
4347
echo ""
4448
echo "To flash everything, do not use any of the -b|-B|-r option."
4549
echo ""
46-
echo "usage: $0 [-b] [-B] [-r] [-h] [-t kc705|ppro] [-d path]"
50+
echo "usage: $0 [-b] [-B] [-r] [-h] [-t kc705|ppro|pipistrello] [-d path]"
4751
echo "-b Flash bitstream"
4852
echo "-B Flash BIOS"
4953
echo "-r Flash ARTIQ runtime"
5054
echo "-h Show this help message"
51-
echo "-t Target (kc705 or ppro, default is: ppro)"
55+
echo "-t Target (kc705, pipistrello, ppro, default is: ppro)"
5256
echo "-d Directory containing the binaries to be flashed"
5357
exit 1
5458
;;
@@ -70,6 +74,16 @@ then
7074
PROXY_PATH=$BIN_PREFIX
7175
BIOS_ADDR=0x60000
7276
RUNTIME_ADDR=0x70000
77+
elif [ "$BOARD" == "pipistrello" ]
78+
then
79+
UDEV_RULES=99-ppro.rules
80+
BITSTREAM=artiq_pipistrello-amp-pipistrello.bin
81+
CABLE=papilio
82+
PROXY=bscan_spi_lx9_csg324.bit
83+
BIN_PREFIX=$ARTIQ_PREFIX/binaries/pipistrello
84+
PROXY_PATH=$BIN_PREFIX
85+
BIOS_ADDR=0x170000
86+
RUNTIME_ADDR=0x180000
7387
elif [ "$BOARD" == "kc705" ]
7488
then
7589
UDEV_RULES=99-kc705.rules

0 commit comments

Comments
 (0)
Please sign in to comment.