diff options
author | sago35 <[email protected]> | 2022-03-24 18:37:29 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-04-09 17:49:54 +0200 |
commit | 09a3c6a16b37a23f0f753b606bd32eabb842f012 (patch) | |
tree | 421c1925ab925763185c831290f087215cd03bf0 /main.go | |
parent | f613cb41a3d3a7b049ac0a1f7d2e500b694ba0a7 (diff) | |
download | tinygo-09a3c6a16b37a23f0f753b606bd32eabb842f012.tar.gz tinygo-09a3c6a16b37a23f0f753b606bd32eabb842f012.zip |
flash: add openocd-verify
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -453,7 +453,11 @@ func Flash(pkgName, port string, options *compileopts.Options) error { if err != nil { return err } - args = append(args, "-c", "program "+filepath.ToSlash(result.Binary)+" reset exit") + exit := " reset exit" + if config.Target.OpenOCDVerify != nil && *config.Target.OpenOCDVerify { + exit = " verify" + exit + } + args = append(args, "-c", "program "+filepath.ToSlash(result.Binary)+exit) cmd := executeCommand(config.Options, "openocd", args...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr |