forked from M-Labs/zynq-rs
add support for cora z7 in tmux script
This commit is contained in:
parent
8c10f27dce
commit
43722eff8b
|
@ -8,8 +8,7 @@ end
|
||||||
|
|
||||||
def zynq-restart
|
def zynq-restart
|
||||||
mon xilinx_ps7_init
|
mon xilinx_ps7_init
|
||||||
#mon load_image zc706.elf 0x00000000 elf
|
load
|
||||||
load zc706.elf
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# easily typed shortcuts
|
# easily typed shortcuts
|
||||||
|
|
35
tmux.sh
35
tmux.sh
|
@ -2,17 +2,30 @@
|
||||||
#! nix-shell -i bash -p gdb openocd cgdb tmux
|
#! nix-shell -i bash -p gdb openocd cgdb tmux
|
||||||
SESSION=$USER
|
SESSION=$USER
|
||||||
|
|
||||||
tmux -2 new-session -d -s $SESSION
|
if [ $1 -eq 0 ]
|
||||||
tmux new-window -t $SESSION:1 -n 'ZC706'
|
then
|
||||||
tmux split-window -h
|
tmux -2 new-session -d -s $SESSION
|
||||||
tmux select-pane -t 0
|
tmux new-window -t $SESSION:1 -n 'ZC706'
|
||||||
tmux send-keys "stty 115200 < /dev/ttyUSB1 && cat /dev/ttyUSB1" C-m
|
tmux split-window -h
|
||||||
tmux select-pane -t 1
|
tmux select-pane -t 0
|
||||||
tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m
|
tmux send-keys "stty 115200 < /dev/ttyUSB1 && cat /dev/ttyUSB1" C-m
|
||||||
tmux split-window -v
|
tmux select-pane -t 1
|
||||||
tmux resize-pane -D 20
|
tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m
|
||||||
tmux send-keys "cd openocd && openocd -f zc706.cfg -c reset init" C-m
|
tmux split-window -v
|
||||||
|
tmux resize-pane -D 20
|
||||||
|
tmux send-keys "cd openocd && openocd -f zc706.cfg -c reset init" C-m
|
||||||
|
else
|
||||||
|
tmux -2 new-session -d -s $SESSION
|
||||||
|
tmux new-window -t $SESSION:1 -n 'CORA Z7'
|
||||||
|
tmux split-window -h
|
||||||
|
tmux select-pane -t 0
|
||||||
|
tmux send-keys "stty 115200 < /dev/ttyUSB1 && cat /dev/ttyUSB1" C-m
|
||||||
|
tmux select-pane -t 1
|
||||||
|
tmux send-keys "sleep 10 && cgdb target/armv7-none-eabihf/release/zc706-experiments -x openocd/gdb-zynq-commands" C-m
|
||||||
|
tmux split-window -v
|
||||||
|
tmux resize-pane -D 20
|
||||||
|
tmux send-keys "cd openocd && openocd -f cora-z7-10.cfg -c reset init" C-m
|
||||||
|
fi
|
||||||
# Set default window
|
# Set default window
|
||||||
tmux select-window -t $SESSION:1
|
tmux select-window -t $SESSION:1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue