Compare commits
3 Commits
738ee32a51
...
01e9f2031a
Author | SHA1 | Date |
---|---|---|
Stewart Mackenzie | 01e9f2031a | |
Stewart Mackenzie | 957228f134 | |
Stewart Mackenzie | 63378f880c |
|
@ -1,2 +1 @@
|
||||||
/target
|
/target
|
||||||
zc706.elf
|
|
||||||
|
|
|
@ -52,6 +52,12 @@ cd openocd
|
||||||
openocd -f cora-z7-10.cfg
|
openocd -f cora-z7-10.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Loading a bitstream into volatile memory
|
||||||
|
|
||||||
|
```shell
|
||||||
|
openocd -f zc706.cfg -c "pld load 0 blinker_migen.bit; exit"
|
||||||
|
```
|
||||||
|
|
||||||
### Development Process
|
### Development Process
|
||||||
|
|
||||||
Clone this repo onto your development/build machine and the raspberry pi that controls the Xilinx 7000 board
|
Clone this repo onto your development/build machine and the raspberry pi that controls the Xilinx 7000 board
|
||||||
|
@ -89,5 +95,3 @@ c
|
||||||
```
|
```
|
||||||
Sometimes you might need to type `load` after `dr`.
|
Sometimes you might need to type `load` after `dr`.
|
||||||
|
|
||||||
Note, to exit `picocom` hit `ctrl-a x`
|
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,3 @@ targets $_TARGETNAME_1
|
||||||
arm mcr 15 0 1 0 0 [expr [arm mrc 15 0 1 0 0] & ~0xd]
|
arm mcr 15 0 1 0 0 [expr [arm mrc 15 0 1 0 0] & ~0xd]
|
||||||
targets $_TARGETNAME_0
|
targets $_TARGETNAME_0
|
||||||
arm mcr 15 0 1 0 0 [expr [arm mrc 15 0 1 0 0] & ~0xd]
|
arm mcr 15 0 1 0 0 [expr [arm mrc 15 0 1 0 0] & ~0xd]
|
||||||
|
|
||||||
# uncomment the below to load up a bitstream onto the fpga
|
|
||||||
#pld load 0 blinker_migen.bit
|
|
||||||
#exit
|
|
||||||
|
|
6
tmux.sh
6
tmux.sh
|
@ -1,13 +1,12 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash -p gdb openocd cgdb picocom tmux
|
#! nix-shell -i bash -p gdb openocd cgdb tmux
|
||||||
SESSION=$USER
|
SESSION=$USER
|
||||||
|
|
||||||
tmux -2 new-session -d -s $SESSION
|
tmux -2 new-session -d -s $SESSION
|
||||||
tmux new-window -t $SESSION:1 -n 'ZC706'
|
tmux new-window -t $SESSION:1 -n 'ZC706'
|
||||||
tmux split-window -h
|
tmux split-window -h
|
||||||
tmux select-pane -t 0
|
tmux select-pane -t 0
|
||||||
tmux send-keys "picocom --b 115200 /dev/ttyUSB1" C-m
|
tmux send-keys "stty 115200 < /dev/ttyUSB1 && cat /dev/ttyUSB1" C-m
|
||||||
#tmux send-keys "cat /dev/ttyUSB1" C-m
|
|
||||||
tmux select-pane -t 1
|
tmux select-pane -t 1
|
||||||
tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m
|
tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m
|
||||||
tmux split-window -v
|
tmux split-window -v
|
||||||
|
@ -22,4 +21,3 @@ tmux select-pane -t $SESSION:.-
|
||||||
|
|
||||||
# Attach to session
|
# Attach to session
|
||||||
tmux -2 attach-session -t $SESSION
|
tmux -2 attach-session -t $SESSION
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue