Fixed Race-Condtion problem with arming of done_flag
This commit is contained in:
20
motor-control/firmware/scripts/remote/run_openocd.exp
Normal file
20
motor-control/firmware/scripts/remote/run_openocd.exp
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
set timeout 30
|
||||
|
||||
spawn ssh [lindex $argv 0]
|
||||
|
||||
expect "# "
|
||||
send "cd ~/gobot/"
|
||||
expect "# "
|
||||
|
||||
send "git fetch"
|
||||
expect "# "
|
||||
|
||||
send "git checkout motor-ctrl-firmware"
|
||||
expect "# "
|
||||
|
||||
send "cd motor-control/firmware/scripts/remote"
|
||||
expect "# "
|
||||
|
||||
send "./run_openocd.sh"
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
sudo src/openocd -f interface/cmsis-dap.cfg -c "bindto 0.0.0.0" -c "adapter speed 5000" -f target/rp2040.cfg -s tcl
|
||||
src/openocd -f interface/cmsis-dap.cfg -c "bindto 0.0.0.0" -c "adapter speed 5000" -f target/rp2040.cfg -s tcl
|
||||
Reference in New Issue
Block a user