OpenCores
URL https://opencores.org/ocsvn/jtag_stapl_player/jtag_stapl_player/trunk

Subversion Repositories jtag_stapl_player

[/] [jtag_stapl_player/] [trunk/] [README] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sukhanov
#'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2
#               STAPL Player for Raspberri Pi
3
#
4
#  Ported from Actel STAPL Player v1.1, which is based on JAM STAPL Player v2.2.
5
#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
6
#'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
7
#       Library used:
8
#  wiringpi from wiringpi.com (GNU LGPLv3 licence)
9
#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
10
#'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
11
#       EXAMPLES:
12
 
13
Scan the first JTAG chain:
14
  sudo StaplPlayer -aREAD_IDCODES scan_chain.stp
15
 
16
Read IDCODE of the first FPGA device in the JTAG chain
17
  sudo StaplPlayer -aREAD_IDCODE scan_chain.stp -poi8 -pod1
18
 
19
Read IDCODE of the second ACTEL device in the JTAG chain
20
  sudo StaplPlayer -aREAD_IDCODE scan_chain.stp -pei8 -ped1
21
 
22
Scan the second JTAG chain
23
  sudo StaplPlayer -aREAD_IDCODES scan_chain.stp -g
24
 
25
Flash the carrier board with the file image.stp (it takes ~2 minutes for IGLOO2 FPGA):
26
  sudo StaplPlayer -aPROGRAM image.stp -poi8 -pod1
27
 
28
Read IDCODE from the second board in chain (Carrier Board):
29
  sudo StaplPlayer -aREAD_IDCODE image.stp -poi8 -pod1
30
 
31
Read IDCODE from the first board in chain (ProtoFEM):
32
  sudo StaplPlayer -aREAD_IDCODE image.stp -pei8 -ped1
33
 
34
Reset ProtoFEM
35
  sudo StaplPlayer -aRESET_CORTEXM3 fpga.stp -g -pei8 -ped1
36
 
37
################################################################################
38
########        Signal Map on the RPi GPIO P1 connector
39
################################################################################
40
 
41
Header  Name    Wpi     JTAG1   Name    JTAG2   Name
42
1       3.3V
43
3       SDA     8
44
5       SCL     9
45
7       GPIO7   7       1       TCK
46
9       0V
47
11      GPIO0   0        5       TMS
48
13      GPIO2   2       3       TDO
49
15      GPIO3   3                       1       TCK
50
17      3.3V
51
19      MOSI    12
52
21      MISO    13
53
23      SCLK    14
54
25      0V
55
 
56
Header  Name    Wpi     JTAG1   Name    JTAG2   Name
57
2       5V
58
4       5V
59
6       0V
60
8       TxD     15
61
10      RxD     16
62
12      GPIO1   1       9       TDI
63
14      0V              2       GND
64
16      GPIO4   4                       5       TMS
65
18      GPIO5   5                       9       TDI
66
20      0V                              2       GND
67
22      GPIO6   6                       3       TDO
68
24      CE0     10
69
26      CE1     11
70
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.