test SPI_slave, don't really work
[trilby-hat-fpga] / openocd / trilby.cfg
1 #
2 # Config for Trilby HAT with ecp5 45k using Raspberry Pi's expansion header
3 #
4 # This is best used with a fast enough buffer but also
5 # is suitable for direct connection if the target voltage
6 # matches RPi's 3.3V and the cable is short enough.
7 #
8 # Do not forget the GND connection, pin 6 of the expansion header.
9 #
10
11 adapter driver bcm2835gpio
12
13 bcm2835gpio_peripheral_base 0x3F000000
14
15 # Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET
16 # These depend on system clock, calibrated for stock 700MHz
17 # bcm2835gpio_speed SPEED_COEFF SPEED_OFFSET
18 bcm2835gpio_speed_coeffs 146203 36
19
20 # Each of the JTAG lines need a gpio number set: tck tms tdi tdo
21 bcm2835gpio_jtag_nums 23 27 22 24
22
23 reset_config none
24
25 # this seems to be maximum speed without ghost devices in id chain
26 #adapter speed 2000
27 # ecppack --compress needs slower speed < 2000
28 adapter speed 1500
29 transport select jtag
30
31 # Trilby HAT 
32 jtag newtap ecp5 tap -irlen 8 -expected-id 0x41112043