Fixed invalid terminal symbol in expect script

This commit is contained in:
AlexanderHD27
2024-09-28 19:52:38 +02:00
parent 1786fa0b41
commit 0dc0f82938
4 changed files with 72 additions and 12 deletions

21
motor-control/firmware/scripts/remote/run_openocd.exp Normal file → Executable file
View File

@@ -4,17 +4,18 @@ set timeout 30
spawn ssh [lindex $argv 0]
expect "# "
send "cd ~/gobot/"
expect "# "
expect "$ "
send "cd ~/gobot/\n"
expect "$ "
send "git fetch"
expect "# "
send "git fetch\n"
expect "$ "
send "git checkout motor-ctrl-firmware"
expect "# "
send "git checkout motor-ctrl-firmware\n"
expect "$ "
send "cd motor-control/firmware/scripts/remote"
expect "# "
send "cd motor-control/firmware/scripts/remote\n"
expect "$ "
send "./run_openocd.sh"
send "./run_openocd.sh\n"
expect eof

2
motor-control/firmware/scripts/remote/run_openocd.sh Normal file → Executable file
View File

@@ -1,3 +1,3 @@
#!/usr/bin/bash
src/openocd -f interface/cmsis-dap.cfg -c "bindto 0.0.0.0" -c "adapter speed 5000" -f target/rp2040.cfg -s tcl
openocd -f interface/cmsis-dap.cfg -c "bindto 0.0.0.0" -c "adapter speed 5000" -f target/rp2040.cfg -s tcl