Merge branch 'tmux' of M-Labs/zc706 into master

This commit is contained in:
Astro 2020-02-03 06:20:06 +08:00 committed by Gitea
commit 26c8164837
2 changed files with 25 additions and 13 deletions

View File

@ -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

15
tmux.sh
View File

@ -2,6 +2,8 @@
#! nix-shell -i bash -p gdb openocd cgdb tmux #! nix-shell -i bash -p gdb openocd cgdb tmux
SESSION=$USER SESSION=$USER
if [ $1 -eq 0 ]
then
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
@ -12,7 +14,18 @@ tmux send-keys "sleep 10 && cgdb zc706.elf -x openocd/gdb-zynq-commands" C-m
tmux split-window -v tmux split-window -v
tmux resize-pane -D 20 tmux resize-pane -D 20
tmux send-keys "cd openocd && openocd -f zc706.cfg -c reset init" C-m 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