Fix stuff
This commit is contained in:
@ -1,20 +1,20 @@
|
||||
[tasks.build]
|
||||
description = "Build the executable"
|
||||
command = "cargo"
|
||||
args = ["build"]
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.objcopy]
|
||||
decsription = "Transform the binary for upload"
|
||||
description = "Transform the binary for upload"
|
||||
command = "arm-none-eabi-objcopy"
|
||||
args = [
|
||||
"-O", "binary",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch.bin",
|
||||
"target/thumbv6m-none-eabi/release/neowatch",
|
||||
"target/thumbv6m-none-eabi/release/neowatch.bin",
|
||||
]
|
||||
dependencies = ["build"]
|
||||
|
||||
[tasks.wait_for_tty]
|
||||
decsription = "Wait for serial port to be available for upload"
|
||||
description = "Wait for serial port to be available for upload"
|
||||
script = [
|
||||
'''
|
||||
#!/bin/sh
|
||||
@ -32,7 +32,7 @@ done
|
||||
disabled = true
|
||||
|
||||
[tasks.upload]
|
||||
decsription = "Upload the program to the device"
|
||||
description = "Upload the program to the device"
|
||||
command = "bossac"
|
||||
args = [
|
||||
"--info",
|
||||
@ -42,7 +42,7 @@ args = [
|
||||
"--erase",
|
||||
"--write",
|
||||
"--verify",
|
||||
"target/thumbv6m-none-eabi/debug/neowatch.bin",
|
||||
"target/thumbv6m-none-eabi/release/neowatch.bin",
|
||||
"--reset",
|
||||
]
|
||||
dependencies = ["objcopy", "wait_for_tty"]
|
||||
|
||||
Reference in New Issue
Block a user