Merged i2c-helper in Main
This commit is contained in:
21
motor-control/firmware/scripts/flash.exp
Executable file
21
motor-control/firmware/scripts/flash.exp
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/expect
|
||||
|
||||
set timeout 30
|
||||
|
||||
set input_file [lindex $argv 0]
|
||||
|
||||
spawn telnet localhost 4444
|
||||
expect "> "
|
||||
send "program $input_file verify\n"
|
||||
expect "** Programming Finished **"
|
||||
|
||||
send "reset halt\n"
|
||||
expect "> "
|
||||
|
||||
send "rp2040.core1 arp_reset assert 0\n"
|
||||
expect "> "
|
||||
send "rp2040.core0 arp_reset assert 0\n"
|
||||
expect "> "
|
||||
|
||||
send "exit\n"
|
||||
exit
|
||||
Reference in New Issue
Block a user