Fixed invalid terminal symbol in expect script
This commit is contained in:
60
motor-control/firmware/.vscode/tasks.json
vendored
60
motor-control/firmware/.vscode/tasks.json
vendored
@@ -102,6 +102,64 @@
|
|||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "Pico Remote: Launch OpenOCD",
|
||||||
|
"command": [
|
||||||
|
"scripts/remote/run_openocd.exp",
|
||||||
|
"gobot-rpi",
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "dedicated",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": true
|
||||||
|
},
|
||||||
|
"isBackground": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "Pico Remote: flash main",
|
||||||
|
"command": [
|
||||||
|
"scripts/remote/flash.sh",
|
||||||
|
"${workspaceRoot}/build/bin/main.elf",
|
||||||
|
"gobot-rpi",
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"dependsOn": [
|
||||||
|
"CMake: build main"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "dedicated",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "Pico Remote: Reset Device",
|
||||||
|
"command": [
|
||||||
|
"scripts/remote/reset.exp",
|
||||||
|
"gobot-rpi"
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
1
motor-control/firmware/lib/picotool
Submodule
1
motor-control/firmware/lib/picotool
Submodule
Submodule motor-control/firmware/lib/picotool added at bf33c6ddd7
21
motor-control/firmware/scripts/remote/run_openocd.exp
Normal file → Executable file
21
motor-control/firmware/scripts/remote/run_openocd.exp
Normal file → Executable file
@@ -4,17 +4,18 @@ set timeout 30
|
|||||||
|
|
||||||
spawn ssh [lindex $argv 0]
|
spawn ssh [lindex $argv 0]
|
||||||
|
|
||||||
expect "# "
|
expect "$ "
|
||||||
send "cd ~/gobot/"
|
send "cd ~/gobot/\n"
|
||||||
expect "# "
|
expect "$ "
|
||||||
|
|
||||||
send "git fetch"
|
send "git fetch\n"
|
||||||
expect "# "
|
expect "$ "
|
||||||
|
|
||||||
send "git checkout motor-ctrl-firmware"
|
send "git checkout motor-ctrl-firmware\n"
|
||||||
expect "# "
|
expect "$ "
|
||||||
|
|
||||||
send "cd motor-control/firmware/scripts/remote"
|
send "cd motor-control/firmware/scripts/remote\n"
|
||||||
expect "# "
|
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
2
motor-control/firmware/scripts/remote/run_openocd.sh
Normal file → Executable file
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/bash
|
#!/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
|
||||||
Reference in New Issue
Block a user