Debugging POC

This commit is contained in:
lukstep
2023-09-25 22:57:46 +02:00
parent 3d8b06e9b7
commit 0d802ea304
7 changed files with 82 additions and 7 deletions

20
sdk_session.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
docker run --rm -d -it --name pico-sdk --network=host --mount type=bind,source=${PWD},target=/home/dev pico-sdk-debug
session="Pico-sdk"
tmux new-session -d -s $session
window=0
tmux rename-window -t $session:$window 'Docker'
tmux send-keys -t $session:$window 'docker exec -it pico-sdk ./bin/sh' C-m
window=1
tmux new-window -t $session:$window -n 'OpenOCD'
tmux send-keys -t $session:$window 'sudo openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "bindto 0.0.0.0"' C-m
window=2
tmux new-window -t $session:$window -n 'UART'
tmux attach-session -t $session