diff options
Diffstat (limited to 'src/tcl/commands.tcl')
-rw-r--r-- | src/tcl/commands.tcl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tcl/commands.tcl b/src/tcl/commands.tcl index 0c5132a9..f42047f7 100644 --- a/src/tcl/commands.tcl +++ b/src/tcl/commands.tcl @@ -1,4 +1,16 @@ # implements Tcl procedures/functions
proc peek {address} {
return [openocd mdw $address] -}
\ No newline at end of file +}
+
+# Production command
+proc board_produce {filename serialnumber} {
+ openocd "reset init"
+ openocd "flash write_image erase $filename [flash] bin"]]
+ openocd "verify_image $filename [flash] bin"]]
+ echo "Successfully ran production procedure"
+}
+
+proc board_test {} {
+ echo "Production test not implemented" +}
|